gtalarico / pyairtable

Python Api Client for Airtable
https://pyairtable.readthedocs.io
MIT License
765 stars 138 forks source link

Add base.duplicate_table method #350

Closed BAPCon closed 6 months ago

BAPCon commented 6 months ago

Not sure if this is a feature we want, but seeing as it can be done in the web UI I figured it may be worth adding.

Adds test function emulating duplicating a table with and without copying records. The schema is always duplicated.

mesozoic commented 6 months ago

I'm not sure this is something that belongs in the client library since it's not a supported endpoint. Airtable does provide a web UI for copying a base, but they don't expose that functionality through the API. The "copy base" feature on the web has certain features, like copying comments, which we wouldn't be able to replicate ourselves, and some library users might be misled into thinking that this method offers equivalent functionality.

We've had some of our own use cases for things like this, and we've found there are a lot of detailed decisions to make that are specific to our own use case. I suspect other library users who might want to duplicate bases programmatically will also need to work through a lot of details on their own.

BAPCon commented 6 months ago

Sounds good!