Import/Export data from/to Deta Bases
detapack is a tiny & simple CLI built with Typer (in Python) which can import and export data from and to Deta Bases.
detapack can be installed from the Python Package Index.
pip install detapack
Run detapack version
to check if detapack was installed successfully. You may need to add detapack to your shell configuration.
Detapack is mainly used with two commands:
detapack export <BASE NAME>
detapack import <BASE NAME> <PATH TO JSON>
Both commands will ask you for your Deta project key, which will be used to access your bases. For security reasons, detapack asks for this key every time and doesn't store it anywhere.
You can read more about each command by putting -- help
at the end.