ASF Common Python Methods
Project description
asfpy - ASF Infrastructure Common Library for Python functions
This Python library contains features commonly used at the Apache Software Foundation.
(For asfpy 0.37 and below, look at our old Subversion repository)
Package Documention
aioldap: asynchronous LDAP client (documentation TBD)clitools: LDAP work via command line tooling (documentation TBD)crypto: helper for ED25519 work (documentation TBD)db: high performance simplified SQLite client (documentation TBD)justone: helper to ensure only one long-running process is operating (documentation TBD)messaging: helpers to send email (documentation TBD)pubsub: client for subscribing to the ASF pubsub service (documentation TBD)sqlite: document-based CRUD using SQLite (documentation TBD)stopwatch: debug/logging timing for Python code. See documentationsyslog: redirectprint()to syslog (documentation TBD)twatcher: watch EZT emplates for edits, then reload (documentation TBD)whoami: fetch hostname of box (documentation TBD)
--
daemon: DEPRECATED old code to spawn a daemon (obsoleted by pipservice)ldapadmin: DEPRECATED internal ASF infra tooling (moved to internal infra)
Building asfpy package
Prerequisites:
poetry: install e.g. with pipxpipx install poetry
Building the package:
$ poetry build
Running the tests:
$ poetry run pytest
Installation
Create and activate a virtual environment and then install asfpy using pip:
$ pip install "asfpy"
Note: Adding [ldap] or [aioldap] extras will install optional dependencies for LDAP support that will
require additional system dependencies:
$ pip install "asfpy[aioldap]"
Publishing a new asfpy package
Create an account on https://pypi.org/, then add a token with an "all projects" scope.
Configure your credentials for the pypi repository:
$ poetry config pypi-token.pypi <your-token>
Finally publish to pypi.org:
$ make publish
See this guide for more details on working with PyPi.
Please also create a tag for the release.
Publishing to test.pypi.org
Create an account on https://test.pypi.org/, then add a token with an "all projects" scope.
Add a testpypi repository to your poetry config:
$ poetry config repositories.testpypi https://test.pypi.org/legacy/
Configure your credentials for the testpypi repository:
$ poetry config pypi-token.testpypi <your-token>
Finally publish to test.pypi.org:
$ make publish-test
The package should upload to the test.pypi.org service.
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 asfpy-0.56.tar.gz.
File metadata
- Download URL: asfpy-0.56.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.6.76-08096-g300882a0a131
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
537cfcab11f91d6a105aea7677aa279a2b8ca286e9612917f072aeff25901042
|
|
| MD5 |
03fdabed340c2074540a0906b3df0559
|
|
| BLAKE2b-256 |
b234daaa958048f9bb38f5d000a7d1464d675c330665cf5aad30464d87465615
|
File details
Details for the file asfpy-0.56-py3-none-any.whl.
File metadata
- Download URL: asfpy-0.56-py3-none-any.whl
- Upload date:
- Size: 38.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.6.76-08096-g300882a0a131
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17b36f29025fd72c33a8ae991fb4e7f56b9aca6957bcb4f89ff135c2c08280cb
|
|
| MD5 |
6c84a649e5936deab680e0f451403bc7
|
|
| BLAKE2b-256 |
ccdd022596ac9394dcfbcafa9f1ae4e085454e40961733d5f5278392218e10b6
|