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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d9c534157d841de9a7323ec6353e9c29827ed1e01c9080137d4bde08be5b5b7
|
|
| MD5 |
39818ba126b3644b4315a175b8f5044a
|
|
| BLAKE2b-256 |
97ecef05ed3155f9f77091fed75b7238172fe78319dd5a88dc08c7eb4d5da071
|
File details
Details for the file warehouse_client-1.0.13-py3-none-any.whl.
File metadata
- Download URL: warehouse_client-1.0.13-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c794cb376a4c2650881c3ffb06d903423fe804013bba12ff271cd27dcac0804
|
|
| MD5 |
ba71df99e5438bf07079e5ec4bd51777
|
|
| BLAKE2b-256 |
390c9a6be9e280acdc1fd4bef470f634c04a9f8666869cf337099a2741219dc3
|