Skip to main content

dasf-messaging-python

Messaging component for python based back-end modules. Developed and tested with Python 3.8


Installation

Make sure you activated the virtual environment of your current python project you wish to install the 'de-messaging-python' module.

source ~/workspace/python/my-backend-module/my-backend-module-venv/bin/activate

Install the module directly from gitlab. The suffix '#egg=demessaging' is the module name as it is listed in the 'setup.py'.

Using your ssh credentials (assuming you copied your public key to the gitlab server):

pip install -e git+ssh://git@git.geomar.de/digital-earth/de-messaging-python.git#egg=demessaging

Or using https (this will ask for your credentials):

pip install -e git+https://git.geomar.de/digital-earth/de-messaging-python.git#egg=demessaging

Check out the version control support of pip.

Another option is the installation from a local repository. Again, in the activated virtual environment replace the URL from the commands above with path and folder name of the local repository. Assuming the local folder with the repository has the same name as the remote one ('de-messaging-python'), the following command will install the module.

pip install -e path/to/de-messaging-python/

Why do we use the '-e' flag with pip install?

This will place the source code of the module into your virtual environment, together with some metadata. This information is used by 'pip freeze' and the URL of the module source is reported. This is important for all python modules we install from gitlab at geomar because they are not listed in the default repositories 'pip' is checking.


Howto use it

see: https://git.geomar.de/digital-earth/dasf/dasf-messaging-python/-/blob/legacy_v0.0.x/ExampleMessageConsumer.py

Download files

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

Source Distribution

demessaging-0.0.17.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

demessaging-0.0.17-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file demessaging-0.0.17.tar.gz.

File metadata

  • Download URL: demessaging-0.0.17.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for demessaging-0.0.17.tar.gz
Algorithm Hash digest
SHA256 6b43b8b839f823c00529537dd817d9119c637307af36c5ba99e5346642bc6a24
MD5 03e274cfba97712b28d08c9a4789eddf
BLAKE2b-256 73f3e50e0d4b2489a331909d2af4f951b0420a0ea303fff614a97d330202bfad

See more details on using hashes here.

File details

Details for the file demessaging-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: demessaging-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for demessaging-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 c0a480efaf511da7cd2e7ce3dbd590eaa14ad3e96cbe77c2c60ceca89d25e59a
MD5 30338fbb97203834f46817f80cec5787
BLAKE2b-256 e95e17c03be43c941ec85f76a3fddd60ae8618e3b970bc59d871817aa56bdb1b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page