CantoPy
CantoPy is an API wrapper and download utility designed for easy scraping of animal sound recordings from the Xeno-Canto database.
Installation
Download the latest published version of this package from PyPI by running the following command:
pip install cantopy
Usage
The CantoPy package contains three main components to look up and download recordings from the Xeno-Canto API: the Query class, FetchManager, and DownloadManager.
The following example demonstrates how to use these components to retrieve high-quality recordings of a common blackbird (Turdus merula):
from cantopy import Query, FetchManager, DownloadManager
# Initialize the search query
query = Query(species_name="common blackbird", quality="A")
# Find matching query results on the Xeno-Canto database
query_result = FetchManager.send_query(query, max_pages=3)
# Initialize a DownloadManager
download_manager = DownloadManager("<download_base_folder>", max_workers=2)
# Download the corresponding recordings of the retrieved results
download_manager.download_all_recordings_in_queryresult(query_result)
Metadata
Release files for cantopy 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 |
|---|---|---|---|---|
| cantopy-0.2.6.tar.gz | 10.5 kB | Without provenance | Details for cantopy-0.2.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cantopy-0.2.6-py3-none-any.whl | Python 3 | none | any | Details for cantopy-0.2.6-py3-none-any.whl |
Total release size: 24.2 kB
Release files / cantopy-0.2.6.tar.gz
| Download URL | cantopy-0.2.6.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73c6ae8aa71c3160f99d280d9fb59ff56891957b1b2000d5bd1a69ef6683ed69
|
|
BLAKE2b-256 checksum How to use checksums |
b75e91fccf4d6a3c15c1dcebe065a015a0d542876518b8c33199f8fe1278e5f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.15 Linux/6.5.0-1025-azure
|
Release files / cantopy-0.2.6-py3-none-any.whl
| Download URL | cantopy-0.2.6-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
757cd3980023405b6dc449217e586f6b3c0846d5b59190917c2ba1f0d34c34b5
|
|
BLAKE2b-256 checksum How to use checksums |
464af5c14da834890c0ce36b76b65b25b1dc3363636284ca0909199b1f147f62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.15 Linux/6.5.0-1025-azure
|
Security for cantopy 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.