Movebank Client
Introduction
The movebank-client is an unofficial async python client to interact with Movebank's API, developed by the Gundi team of EarthRanger,.
Installation
pip install movebank-client
Usage
from movebank_client import MovebankClient
# You can use it as an async context-managed client
async with MovebankClient(
base_url="https://www.movebank.mpg.de",
username="your-user",
password="your-password",
) as client:
# Upload permissions for a study
async with aiofiles.open("permissions.csv", mode='rb') as perm_file:
await client.post_permissions(
study_name="your-study",
csv_file=perm_file
)
# Send tag data to a feed
async with aiofiles.open("data.json", mode='rb') as tag_data:
await client.post_tag_data(
feed_name="gundi/earthranger",
tag_id="your-tag-id",
json_file=tag_data
)
# Or create an instance and close the client explicitly later
client = MovebankClient()
# Send tag data to a feed
async with aiofiles.open("data.json", mode='rb') as tag_data:
await client.post_tag_data(
feed_name="gundi/earthranger",
tag_id="your-tag-id",
json_file=tag_data
)
...
await client.close() # Close the session used to send requests
Using the CLI suite
There are 3 commands to use directly, in order to test Movebank API endpoints and credentials:
get-events-for-study: Get Events for a Studyget-individual-events: Get Events for an Individualget-study: Get a Study, with option to fetch its individuals
For running the CLI suite help, run:
python cli.py --help
For running specific command help, run:
python cli.py <COMMAND_NAME> --help
All responses will be printed in the terminal as JSON or list responses.
Release files for movebank-client 1.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| movebank_client-1.3.2.tar.gz | 11.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| movebank_client-1.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.1 kB
Release files / movebank_client-1.3.2.tar.gz
| Download URL | movebank_client-1.3.2.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b945f846be06e6af06822686c01c2076518f2eb5816cd975b14986d1989e61c5
|
|
BLAKE2b-256 checksum How to use checksums |
07b44ca1a7fc9427239ff18635ad118b19fb480e8d74c84e6db1515570fa2875
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","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}
|
Release files / movebank_client-1.3.2-py3-none-any.whl
| Download URL | movebank_client-1.3.2-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f957a16f288ee9613875a06d499b54d0173ec5ecbd562edb2a21f58499ac42e
|
|
BLAKE2b-256 checksum How to use checksums |
c8e06d30f1315a9bae796554c523af26b9270df8c4af408a8e9b3b6f546a68a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","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}
|