Skip to content

Python package to query EcoTaxa and process its output

License

Notifications You must be signed in to change notification settings

ecotaxa/pyecotaxa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyecotaxa

Documentation Status Tests PyPI

Python package to query EcoTaxa and process its output.

pyecotaxa.archive: Read and write EcoTaxa archives

from pyecotaxa.archive import read_tsv, write_tsv

# Read a .tsv file into a pandas DataFrame
# In contrast to pd.read_csv, this function transparently handles the type header
df = read_tsv(path_to_file)

# Write pandas DataFrame into a .tsv file
# In contrast to df.to_csv, this function can generate the type header
write_tsv(df, path_to_file)

pyecotaxa.remote: Interact with a remote EcoTaxa server

from pyecotaxa.remote import Remote

r = Remote()

# Login
r.login(username, password)

# Pull one or more project archives by project_id
r.pull(project_ids)

About

Python package to query EcoTaxa and process its output

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages