A Python toolkit for uploading and downloading data to external repositories and cloud services.
Project description
Piccione
Pronounced Py-ccione.
PICCIONE - Python Interface for Cloud Content Ingest and Outbound Network Export
A Python toolkit for uploading and downloading data to external repositories and cloud services.
Installation
pip install piccione
Modules
Upload
Figshare
Upload files to Figshare.
python -m piccione.upload.on_figshare config.yaml
Configuration file format:
TOKEN: your_figshare_token
ARTICLE_ID: 12345678
files_to_upload:
- /path/to/file1.zip
- /path/to/file2.zip
Zenodo
Upload files to Zenodo.
python -m piccione.upload.on_zenodo config.yaml
Configuration file format:
access_token: your_zenodo_token
project_id: 12345678
zenodo_url: https://zenodo.org
files:
- /path/to/file1.zip
- /path/to/file2.zip
Internet Archive
Upload files to the Internet Archive.
python -m piccione.upload.on_internet_archive config.yaml
Configuration file format:
identifier: my-archive-item
access_key: your_access_key
secret_key: your_secret_key
file_paths:
- /path/to/file1.zip
metadata:
title: My Archive Item
description: Description of the item
Triplestore
Execute SPARQL UPDATE queries on a triplestore.
python -m piccione.upload.on_triplestore http://localhost:8890/sparql /path/to/sparql/folder
Download
Figshare
Download all files from a Figshare article.
python -m piccione.download.from_figshare 12345678 -o /output/directory
Documentation
Full documentation is available at: https://opencitations.github.io/piccione/
Development
This project uses UV for dependency management.
Setup
git clone https://github.com/opencitations/piccione.git
cd piccione
uv sync --all-extras --dev
Running tests
uv run pytest tests/
Building documentation locally
cd docs
npm install
npm run dev
License
This project is licensed under the ISC License - see the LICENSE.md file for details.
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
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
File details
Details for the file piccione-1.0.0.tar.gz.
File metadata
- Download URL: piccione-1.0.0.tar.gz
- Upload date:
- Size: 640.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b7a8afbd805ac567c65bced89e72df6c5b072870c78bbb015a1688da52e0609
|
|
| MD5 |
3158a73a5913ef5481fce9bb71d1e700
|
|
| BLAKE2b-256 |
7ed76bd62718f08d3a1ffa92f5f88ba0e338dbc1ec1b78312a0bb057d6291aca
|
File details
Details for the file piccione-1.0.0-py3-none-any.whl.
File metadata
- Download URL: piccione-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e3ad13d7e0bf2c6e30638854d9d210f667be5b6d638ce118938b560aa596214
|
|
| MD5 |
29718fe9c5410b9d915182a1994a42c3
|
|
| BLAKE2b-256 |
8b4328182c98175ee171bf827ab6abf58043fc1e38749b65a5e002391fd117ba
|