Democritus functions for working with archives.
Project description
Democritus Archives (a.k.a. d8s-archives)
Democritus functions[1] for working with archives.
[1] Democritus functions are simple, effective, modular, well-tested, and well-documented Python functions.
We use d8s
(pronounced "dee-eights") as an abbreviation for democritus
(you can read more about this here).
Installation
pip install d8s-archives
Usage
You import the library like:
from d8s_archives import *
Once imported, you can use any of the functions listed below.
Functions
-
def archive_create(file_path, output_path, *, archive_name=None): """Archive the given file."""
-
def archive_read(file_path, *, archive_name=None, password=None) -> Iterable[Tuple[str, str]]: """Read file(s) from the archive. If archive_name is given, read only that file; otherwise, read all files."""
Development
👋 If you want to get involved in this project, we have some short, helpful guides below:
If you have any questions or there is anything we did not cover, please raise an issue and we'll be happy to help.
Credits
This package was created with Cookiecutter and Floyd Hightower's Python project template.
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
File details
Details for the file d8s_archives-0.7.0.tar.gz
.
File metadata
- Download URL: d8s_archives-0.7.0.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e41bce4d4a3059600b7fa39b57b2931c05cbb1b0d2633d7e5a291743f771838c |
|
MD5 | 8ba84554b940196c4907ed25dc04ca2f |
|
BLAKE2b-256 | 0d82b22eb5f83c61bacd6d68b3f17ed0aaf00d3a4f8637c26230d99a976b2051 |
File details
Details for the file d8s_archives-0.7.0-py2.py3-none-any.whl
.
File metadata
- Download URL: d8s_archives-0.7.0-py2.py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5478eebdbfab9e72a26cd6da54c0b07853d47e5a8f418703eb31ec59002ba1d |
|
MD5 | 9a2c7b736589bf01929f47b9cc46444b |
|
BLAKE2b-256 | 9611e8cef32385f19bb31b28bd7a30116899dacfe778959863e1702ec8766e49 |