Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Datapunt Amsterdam objectstore module

Project description

Objecstore Libary

$ pip install datapunt-objectstore

Contains common used objectstore code for our API’s.

During import / ETL tasks we offten use data uploaded to the objecstore from data sources.


Found a bug or want to work on the code? You can branch the repository on GitHub or file an issue at its issue tracker.

1. Install the dev dependencies in your virtual environment

$ pip install --upgrade setuptools
$ python install develop

The setuptools pakage must be upgraded (as shown above) because the version that is pre-packaged with Python 3.6 causes problems when running the tests.

When you get a PYTHONPATH error, use the install-dir argument:

$ python install develop --install-dir venv/lib/python3.6/site-packages

2. Run the tests

The test suite and test coverage are run as follows:

$ python test

The Python style checker Flake8 can be run as follows:

$ python flake8

3. Example configuration and usage

python -m objecstore.databasedumps /backups/postgres.dump objectstore_dir --upload-db

uploads given dump with a date and environment informtion to objectstore

python -m objecstore.databasedumps downloaddir objectstore_dir --download-db

Dowload latest dump with the name database.environment.latestdate.dump from given environmnet with from location directory in objectstore. - WILL DELETE OLD DUMPS more then 20 days old.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for datapunt-objectstore, version 2020.9.7
Filename, size File type Python version Upload date Hashes
Filename, size datapunt_objectstore-2020.9.7-py3-none-any.whl (14.9 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page