Skip to main content

Datapunt Amsterdam objectstore module

Project description

https://img.shields.io/badge/python-3.6%2C%203.5%2C%203.6-blue.svg https://img.shields.io/badge/license-MPLv2.0-blue.svg

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.

Contributing

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 setup.py 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 setup.py 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 setup.py test

The Python style checker Flake8 can be run as follows:

$ python setup.py 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.

Source Distribution

datapunt-objectstore-2019.4.8.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

datapunt_objectstore-2019.4.8-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file datapunt-objectstore-2019.4.8.tar.gz.

File metadata

  • Download URL: datapunt-objectstore-2019.4.8.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for datapunt-objectstore-2019.4.8.tar.gz
Algorithm Hash digest
SHA256 0558a194de5b29ae0a8dc1913004732de7b86f3fb84844fd0da647a57ad12159
MD5 0fa05faade957892c9c88b59745e930a
BLAKE2b-256 e9e17bad10e50b4c21e5e21a80ae790dbdb8296868262801394f377829464d99

See more details on using hashes here.

File details

Details for the file datapunt_objectstore-2019.4.8-py3-none-any.whl.

File metadata

  • Download URL: datapunt_objectstore-2019.4.8-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for datapunt_objectstore-2019.4.8-py3-none-any.whl
Algorithm Hash digest
SHA256 0f5459dc3e9abdbaade9a87b76e1d15047f445717b11351be4f91e2bb11b4bd5
MD5 acf02f0387a22aaec7e51db7d7d455a5
BLAKE2b-256 a995db763331331b5b7e5bed43f16268a1a7fa30214d13b94227c5bf8e10c836

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page