Advarchs: Data retrieval from remote archives
Overview
Advarchs is simple tool for retrieving data from web archives. It is especially useful if you are working with remote data stored in compressed spreadsheets or of similar format.
Getting Started
Say you need to perform some data anlytics on an excel spreadsheet that gets refreshed every month and stored in RAR format. You can target a that file and convert it to a pandas dataframe with the following procedure:
import pd
import os
import tempfile
from advarchs import webfilename,extract_web_archive
TEMP_DIR = tempfile.gettempdir()
url = "http://www.site.com/archive.rar"
arch_file_name = webfilename(url)
arch_path = os.path.join(TEMP_DIR, arch_file_name)
xlsx_files = extract_web_archive(url, arch_path, ffilter=['xlsx'])
for xlsx_f in xlsx_files:
xlsx = pd.ExcelFile(xlsx_f)
...
Requirements
Python 3.5+
p7zip
Special note
On CentOS and Ubuntu <= 16.04, the following packages are needed:
unrar
Installation
pip install advarchs
Contributing
See CONTRIBUTING
Code of Conduct
This project adheres to the Contributor Covenant 1.2. By participating, you are advised to adhere to this Code of Conduct in all your interactions with this project.
License
Metadata
Release files for advarchs 0.1.7
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 | |
|---|---|---|---|---|
| advarchs-0.1.7.tar.gz | 10.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| advarchs-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.2 kB
Release files / advarchs-0.1.7.tar.gz
| Download URL | advarchs-0.1.7.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d3e4e805663d82d275f441febc42a7955477aec0d702c1f70fe8e37cd32c4c6
|
|
BLAKE2b-256 checksum How to use checksums |
0f866c0fa4e56faed31f1cc2b5232d6919cc374bf9b5d0109f3ea64f83e6de18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.16 CPython/3.7.3 Windows/10
|
Release files / advarchs-0.1.7-py3-none-any.whl
| Download URL | advarchs-0.1.7-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e804502cb8e94b95790df27ae6f59109ac9e2f7e1c8acbfeef840ad4204ef75b
|
|
BLAKE2b-256 checksum How to use checksums |
3b895c909cc8c079a90b09b8f0ff361a442e349930332b46cfbf5adf7b470c16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.16 CPython/3.7.3 Windows/10
|
Security for advarchs 0.1.7
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.