Skip to main content

iNaturalist to Ankivalenz

A Python CLI tool to export iNaturalist observations to Ankivalenz-formatted Markdown for creating flashcards.

Features

  • Fetch user's observations from iNaturalist API
  • Download observation images to a local directory
  • Generate Ankivalenz-compatible Markdown flashcards
  • Support for multiple observations
  • Preserve observation metadata

Installation

pip install inaturalist-to-ankivalenz

Usage

Export observations for any iNaturalist user:

inaturalist-to-ankivalenz --username <username> [--limit <number>] [--output-dir <directory>] [--common-name-lang <language>]

Options:

  • --username: iNaturalist username (required)
  • --limit: Maximum number of observations to fetch (default: 100)
  • --output-dir: Output directory for images and markdown (default: current directory)
  • --common-name-lang: Language for common names (e.g., 'en', 'da', 'sv') (default: 'en')

Output

The tool will:

  1. Create an iNaturalist/ directory to store downloaded images
  2. Generate an iNaturalist.md file with Ankivalenz-formatted flashcards

Example output format:

# iNaturalist

- ![iNaturalist/observation-1.jpg] ?:: Monarch Butterfly (Danaus plexippus)
- ![iNaturalist/observation-2.jpg] ?:: California Poppy (Eschscholzia californica)

Development

To set up the development environment:

# Clone the repository
git clone https://github.com/yourusername/inaturalist-to-ankivalenz.git
cd inaturalist-to-ankivalenz

# Create and activate virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install in development mode
pip install -e .

# Run tests
pytest

License

MIT License

Metadata

Release files for inaturalist-to-ankivalenz 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inaturalist-to-ankivalenz 0.3.0
File Size Uploaded Provenance Actions
inaturalist_to_ankivalenz-0.3.0.tar.gz 7.4 kB Without provenance Details for inaturalist_to_ankivalenz-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inaturalist-to-ankivalenz 0.3.0
File Interpreter ABI Platform Actions
inaturalist_to_ankivalenz-0.3.0-py3-none-any.whl Python 3 none any Details for inaturalist_to_ankivalenz-0.3.0-py3-none-any.whl

Total release size: 12.1 kB

Release files / inaturalist_to_ankivalenz-0.3.0.tar.gz

Download URL inaturalist_to_ankivalenz-0.3.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9ff84ca3704a4ceb64671555effc62ce3bf96940af812aa1035afc3936dad425
BLAKE2b-256 checksum
How to use checksums
caca7513cbfa8f827d1383501fe434c02660f0947864c9101a39495a1809aa13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / inaturalist_to_ankivalenz-0.3.0-py3-none-any.whl

Download URL inaturalist_to_ankivalenz-0.3.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb363924f85b3237b1ef42aca85402510e46c428e3c4f1a24466a98f1c887b76
BLAKE2b-256 checksum
How to use checksums
5a38a1318c8ca0e7c2459c623c09c0df7f82aa6f678aa11630cc1ce0ed154bb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Security for inaturalist-to-ankivalenz 0.3.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page