oldvis_dataset
A Python package for downloading metadata and images of old visualizations in oldvis/dataset.
Installation
pip install oldvis_dataset
Usage Example
Downloading metadata of visualizations:
from oldvis_dataset import visualizations
visualizations.download(path="./visualizations.json")
Downloading images:
from oldvis_dataset import visualizations, fetch_image
visualizations.download(path="./visualizations.json")
fetch_images(metadata_path="./visualizations.json", img_dir="./images/")
Downloading images with filtering condition:
import json
from oldvis_dataset import visualizations, fetch_image
metadata = visualizations.load()
# Download public domain images.
metadata = [d for d in metadata if d["rights"] == "public domain"]
path = "./visualizations.json"
with open(path, "w", encoding="utf-8") as f:
json.dump(metadata, ensure_ascii=False)
fetch_image(metadata_path=path, img_dir="./images/")
API
oldvis_dataset.visualizations
oldvis_dataset.visualizations.download(path: str) -> None
Request the metadata of visualizations and store at path.
Each store metadata entry follows the data structure ProcessedMetadataEntry (Source).
visualizations.download(path="./visualizations.json")
oldvis_dataset.visualizations.load() -> List
Request the metadata of visualizations without saving.
data = visualizations.load()
oldvis_dataset.authors
oldvis_dataset.authors.download(path: str) -> None
Request the metadata of authors and store at path.
authors.download(path="./authors.json")
oldvis_dataset.authors.load() -> List
Request the metadata of authors without saving.
data = authors.load()
oldvis_dataset.fetch_images(metadata_path: str, img_dir: str) -> None
Fetch images and store at img_dir according to the URLs in the downloaded metadata of visualizations stored at metadata_path.
fetch_images(metadata_path="./visualizations.json", img_dir="./images/")
⚠️The image fetching can be slow.
oldvis_dataset.save_as_bib(metadata_path: str, bib_path: str) -> None
Save the fetched metadata at metadata_path as a BibTeX file and store at bib_path.
save_as_bib(metadata_path="./visualizations.json", bib_path="./visualizations.bib")
Metadata
Release files for oldvis-dataset 0.1.1
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 |
|---|---|---|---|---|
| oldvis_dataset-0.1.1.tar.gz | 4.7 kB | Without provenance | Details for oldvis_dataset-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oldvis_dataset-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for oldvis_dataset-0.1.1-py3-none-any.whl |
Total release size: 10.5 kB
Release files / oldvis_dataset-0.1.1.tar.gz
| Download URL | oldvis_dataset-0.1.1.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebb98b0832f3d73ba03fceef3a7cf227cfc1a36273d939b0788dd4833f097644
|
|
BLAKE2b-256 checksum How to use checksums |
09ff807da1f45975641bc0d0a4eef6e31b4bdd0f9ef9c42a89be08531f06d8a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.0 Linux/5.15.0-1041-azure
|
Release files / oldvis_dataset-0.1.1-py3-none-any.whl
| Download URL | oldvis_dataset-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28280ac115d65d2629dc3b46ae390c3de62bf40887e692008d9321d35225ffec
|
|
BLAKE2b-256 checksum How to use checksums |
116b6ca29004f7e8ccb53dee0f6ba76e4b0de9be85341eea1311664466c3804b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.0 Linux/5.15.0-1041-azure
|
Security for oldvis-dataset 0.1.1
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.