This release is a pre-release and may not be stable for production use.
Dronefly Miner
This library supports fast local taxon name searches against a database built from iNaturalist DWC-A exports using pyinaturalist-convert.
It is used by Dronefly bot to support taxon name autocompletion.
By using a local database instead of the iNaturalist API, Dronefly bot is able to keep up with moderate to heavy demand without exceeding iNat API rate limits.
Requirements
- Sufficient disk space for the files, about 30GB total:
~/.local/share/dronefly-miner/*- ~28 GB iNaturalist DWC-A observations
- ~660 MB iNaturalist DWC-A taxonomy
- ~770 MB database built from those files
- A build takes under a half hour on the developer's system:
- System: Ryzen 7 255, 32GB ram, and nvme ssd
- Network: 1Gbps residential FTH
Build the database
- Install uv from https://docs.astral.sh/uv
- Perform an initial build of the database with:
uvx dronefly-miner build
Confirm that the build is successful and restart the bot to
test autocompletion with /taxon show. Upon first use, the
results may be empty. Once the database connection is
primed, autocompletions should be fairly quick.
Schedule database updates
In order to update the database as soon as iNaturalist
publishes new DWC-A archives of either the taxonomy or
GBIF observations data sets, schedule nightly runs
of dronefly-miner build. Archives won't be downloaded
unless newer versions are available, and the database
build will be skipped if nothing was downloaded and the
database exists.
Example scheduled build
Dronefly bot runs from the redbot account. Dronefly-miner
builds run on the same account daily at 1 am local time at
reduced priority to minimize impact on other processes:
$ cat > ~/bin/dronefly-miner.sh
#!/bin/bash
cd /home/redbot/dronefly-miner
/home/synrg/.local/bin/uv run dronefly-miner build > /home/redbot/.local/share/dronefly-miner/build.log 2>&1
$ chmod a+rx ~/bin/dronefly-miner.sh
$ crontab -e
… *edit to match below*
$ crontab -l
# m h dom mon dow command
0 1 * * * /bin/nice -n 19 /home/redbot/bin/dronefly-miner.sh
Metadata
Release files for dronefly-miner 0.2.1.dev1
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 |
|---|---|---|---|---|
| dronefly_miner-0.2.1.dev1.tar.gz | 5.8 kB | Without provenance | Details for dronefly_miner-0.2.1.dev1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dronefly_miner-0.2.1.dev1-py3-none-any.whl | Python 3 | none | any | Details for dronefly_miner-0.2.1.dev1-py3-none-any.whl |
Total release size: 12.8 kB
Release files / dronefly_miner-0.2.1.dev1.tar.gz
| Download URL | dronefly_miner-0.2.1.dev1.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
708ea333781e3d8b78d090d5c19574f5948d9ea7c1e7abc1432dee8f559438e6
|
|
BLAKE2b-256 checksum How to use checksums |
1863590a6e9cb0d09f05df61a7e3b9482d9eb24e1a8953239d7204e35607bffd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / dronefly_miner-0.2.1.dev1-py3-none-any.whl
| Download URL | dronefly_miner-0.2.1.dev1-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f6a73671858e49f2883a53fecd049bec03d7a880dbefcfa8aa27aa883461d69
|
|
BLAKE2b-256 checksum How to use checksums |
85b067e7e1926251d4fa196d84d22e782bb1ac081f080e33bb382d97c4a9a6d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for dronefly-miner 0.2.1.dev1
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.