AsthoUpdater
A lib for update files written in Python.
Made with
Install
Execute the command:
pip3 install AsthoUpdater
Examples
Simple Update
By default, the verification algorithm is sha512, you can choose another one with the algorithm parameter, available: sha256, sha512, crc32, md5.
If you want to use another one you can contact me.
from astho_updater import AsthoUpdater
async with AsthoUpdater("jsonUrl", "pathToUpdate") as a:
await a.download()
AsthoUpdater args
json_url: Your json url, required (str)
download_path: The download path, required (str)
download_timeout: The timeout to download file, optionnal, 12 at default (int)
overwrite_files: If you want re-download all files, optionnal, False at default (bool)
file_deleter: If you want dl older files, optionnal, False at default (bool)
logger_status: If you want enable/disable the logger, optionnal, True at default (bool)
logger_name: If you want set the logger name, optionnal, 'astho_updater' at default (str)
logger_date_format: If you want set the logger name format, optionnal, '%H:%M:%S - %d/%m/%Y' at default (str)
algorithm: If you want set the used algorithm, optionnal, 'sha512' at default (str)
download_limit: Limit the number of files that can be downloaded simultaneously, optionnal, 10 at default (int)
AsthoUpdater properties
get_total_files_to_download: Return total file to download (int)
get_total_files_downloaded: Return total files downloaded (int)
AsthoUpdater json example
{
"maintenance": "off",
"files": [
{
"checksum": "theChecksum",
"name": "filename",
"url": "linkOfFile",
"path": "pathOfFile"
},
{
"checksum": "theChecksum",
"name": "filename",
"url": "linkOfFile",
"path": "pathOfFile"
}
]
}
Author
License
Metadata
Release files for AsthoUpdater 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| AsthoUpdater-0.2.6.tar.gz | 17.6 kB | Without provenance | Details for AsthoUpdater-0.2.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| AsthoUpdater-0.2.6-py3-none-any.whl | Python 3 | none | any | Details for AsthoUpdater-0.2.6-py3-none-any.whl |
Total release size: 35.1 kB
Release files / AsthoUpdater-0.2.6.tar.gz
| Download URL | AsthoUpdater-0.2.6.tar.gz |
|---|---|
| Size | 17.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88f2fac618503102da480a4dca4c1fde8345a8aa4b9811f91ec4764cc57fe50e
|
|
BLAKE2b-256 checksum How to use checksums |
2ec0354af2bffe0c864eb2d102957cf2f429faeec25ca5601a2e9390cef5cf1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Release files / AsthoUpdater-0.2.6-py3-none-any.whl
| Download URL | AsthoUpdater-0.2.6-py3-none-any.whl |
|---|---|
| Size | 17.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a8f838350433860cc1e0f13587bf70193ab09d69ede2e5f934e693aacdf63e5
|
|
BLAKE2b-256 checksum How to use checksums |
ffa017b7921f43aded86dea3ae1f361826e9242f4cfc9f5e89b01ab3005a6bd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Security for AsthoUpdater 0.2.6
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.