Skip to main content

Client library to interact with levinsen software warehouse artifact management system.

Project description

Python client library for warehouse

This library implements basic functionality for interaction with a warehouse instance.

Examples of this includes:

  • Searching with natural and normal query languages for bundles and files
  • Readout of properties for files and bundles
  • Download and upload of files
  • Creation of bundles
  • Trashing and restoration of bundles and files

Examples

For a basic demonstration of the library functionality, an interactive mode is included. Make sure the two files ~/.warehouse.apikey and ~/.warehouse.url are populated with API key and URL to the warehouse instance, respectively, and launch the interative mode:

> python -m warehouse

Reading config from ~/.warehouse.url and ~/.warehouse.apikey

Successfully connected to warehouse on https://warehouse.local
A client object named 'c' is available

Try running help(c) for more information

>>>

Searching for bundle and listing of properties

import warehouse as wh

c = wh.Client("https://warehouse.local", wh.ApikeyAuth(APIKEY))

for bundle in c.find_bundles('bundle.version exists', sorting=None, limit=1):
    print(bundle.get_properties())

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

warehouse_client-1.0.13.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

warehouse_client-1.0.13-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file warehouse_client-1.0.13.tar.gz.

File metadata

  • Download URL: warehouse_client-1.0.13.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for warehouse_client-1.0.13.tar.gz
Algorithm Hash digest
SHA256 9d9c534157d841de9a7323ec6353e9c29827ed1e01c9080137d4bde08be5b5b7
MD5 39818ba126b3644b4315a175b8f5044a
BLAKE2b-256 97ecef05ed3155f9f77091fed75b7238172fe78319dd5a88dc08c7eb4d5da071

See more details on using hashes here.

File details

Details for the file warehouse_client-1.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for warehouse_client-1.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 4c794cb376a4c2650881c3ffb06d903423fe804013bba12ff271cd27dcac0804
MD5 ba71df99e5438bf07079e5ec4bd51777
BLAKE2b-256 390c9a6be9e280acdc1fd4bef470f634c04a9f8666869cf337099a2741219dc3

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 Pingdom Monitoring Sentry Error logging StatusPage Status page