No project description provided
Project description
PYACME
You can get certificate from using cloudflare webhook, arvancloud webhooks, acme dns cname, raw txt records
installing it using pip
pip install pyacmecli
Help
Usage: python -m pyacmecli [OPTIONS] COMMAND [ARGS]...
PyACME CLIA powerful tools you can get letsencrypt certificates with dns
providers (Arvancloud, Cloudflare, AcmeDNS) or get certificate using dns
records)To debug application, or watch you can use: pyacmecli --verbose
{command}
Options:
-v, --verbose Application Log verbosity
--help Show this message and exit.
Commands:
cron Renew certificate
init init pyacme script
list List of certificates
new Get new certificate
How I can get certificate
pyacmecli new --domain mydomain.ir --domain '*.mydomain.ir' --provider cloudflare --email mygmail@gmail.com --access-token 'cloudflare-access-token' --renew-command 'docker restart mycontainer_name'
how to use it in production env
mkdir pyacmecli
cd pyacmecli
virtualenv .venv
source .venv/bin/activate
pip install pyacmecli
/apps/pyacmecli/.venv/bin/pyacmecli init # to init pyacmecli project
/apps/pyacmecli/.venv/bin/pyacmecli new --domain mydomain.ir --domain '*.mydomain.ir' --provider cloudflare --email mygmail@gmail.com --access-token 'cloudflare-access-token' --renew-command 'docker restart mycontainer_name'
/apps/pyacmecli/.venv/bin/pyacmecli list # list of certificates
/apps/pyacmecli/.venv/bin/pyacmecli cron cron --force-renewal # force renewal certificates
/apps/pyacmecli/.venv/bin/pyacmecli cron
# example cron job (run every day at 2 AM)
crontab -e
0 2 * * * /apps/pyacmecli/.venv/bin/pyacmecli cron
build and publish project
uv build
uv publish
build project (legacy)
# rebuild your wheel
python -m build
# install it
pip install dist/pyacmecli-0.1.0-py3-none-any.whl
#upload project to pypi
twine upload dist/*
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
pyacmecli-0.1.7.tar.gz
(18.3 kB
view details)
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
pyacmecli-0.1.7-py3-none-any.whl
(21.0 kB
view details)
File details
Details for the file pyacmecli-0.1.7.tar.gz.
File metadata
- Download URL: pyacmecli-0.1.7.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ea113635251360cade7427ba2c4594ab062fe5275c1642d18740ef84c683c15
|
|
| MD5 |
6e16412168b544142182188c88b85d19
|
|
| BLAKE2b-256 |
38bd4d9181c7a4aacdc0d13b6c33058f25094fb7cbaca7b37f8f35c1e91bd3bc
|
File details
Details for the file pyacmecli-0.1.7-py3-none-any.whl.
File metadata
- Download URL: pyacmecli-0.1.7-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6daf58e4869c7c63825550182cb4ff1b262bdb857c1845bee2123e2f94e27f3c
|
|
| MD5 |
ee0d4f2b48826ddd9706d720ed21022c
|
|
| BLAKE2b-256 |
ca8252f209291cfe3ac6f622215ae0a706798e58507dc38ccb085d866fdb4c26
|