Skip to main content

lagoon-python

lagoon-python is the official Python client for lagoon, aAn inmemory and highly concurrent bloom filter service based on json-rpc.

You can setup lagoon service: refer - https://raw.githubusercontent.com/sourcepirate/lagoon/master/README.md

Installation

lagoon-python supports:

  • Python (3.5, 3.6, 3.7, 3.8)

Install from Pypi

pip install lagoon-python

Usage

# Create a new client
import lagoon
client = lagoon.connect('YOUR_LAGOON_HOSTNAME', 'LAGOON_SERVICE_PORT')

# Create a collection
collection1 = client.create_collection("collection1")

# create a key in the collection
client.set_key("collection1", "key1")

# check if a key exist in the collection
client.has_key("collection1", "key1")

# delete collection
client.delete_collection("collection1")


### Contributing

First, make sure you can run the test suite. Tests are run via py.test

Install test requirements

```bash
pip install .[test]
py.test
# with coverage
py.test --cov lagoon --cov-report html

Install black and flake8

pip install .[ci]

Install git hooks to avoid pushing invalid code (git commit will run black and flake8)

Releasing a new version

In order to release new version you need to be a maintainer on Pypi.

  • Update CHANGELOG
  • Update the version on setup.py
  • Commit and push to Github
  • Create a new tag for the version (eg. v1.1.0)
  • Create a new dist with python python setup.py sdist
  • Upload the new distributable with twine twine upload dist/lagoon-python-VERSION-NAME.tar.gz

If unsure you can also test using the Pypi test servers twine upload --repository-url https://test.pypi.org/legacy/ dist/lagoon-python-VERSION-NAME.tar.gz

Metadata

Release files for lagoon-python 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lagoon-python 1.0.0
File Size Uploaded Provenance Actions
lagoon-python-1.0.0.tar.gz 4.6 kB Without provenance Details for lagoon-python-1.0.0.tar.gz

Release files / lagoon-python-1.0.0.tar.gz

Download URL lagoon-python-1.0.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2a37f13d3199beb5553929ddb7e1c6c4b729f2203475aed8ebd2b91e5acef68f
BLAKE2b-256 checksum
How to use checksums
99ba7d9a405f55fbc5fd5aa0a2ae9cd582613d5429fad4297c8ec3cac115128c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4

Security for lagoon-python 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page