Skip to main content

No project description provided

Project description

DOI

FishScrapping

Features:

  • get up-to-date information from FishBase database
  • Terminal-based scripts

Software requierements:

  • Python 3

Installation

Using pip

pip install FishScrapping

Length-Weight relationships

Let's suppose we have the following a list of species stored at species.txt:

cat species.txt
Odontesthes regia
Engraulis ringens
Menticirrhus undulatus
Sciaena deliciosa

We can obtain their LWRs by using:

fishbase.py species.txt -lw

While output file name is based on input and on above example this file is named species_fishbase_lw.tsv, option -out can also modify default names.

cat species_fishbase_lw.tsv
species	a	b	n	Country	RangeLength
Odontesthes regia	NA	NA	NA	NA	NA
Engraulis ringens	0.02150	2.604	NA	Peru	NA
Engraulis ringens	0.00674	3.000	NA	Peru	NA
Engraulis ringens	0.00460	3.121	NA	Chile	NA
Engraulis ringens	0.00421	3.144	NA	Chile	NA
Engraulis ringens	0.00375	3.221	NA	Chile	NA
Menticirrhus undulatus	0.01027	3.000	1	NA	61.0, 61.0
Sciaena deliciosa	NA	NA	NA	NA	NA

Synonyms

We can also extract species synonyms according to this database with the option -syn:

fishbase.py species.txt -syn

Again, by default fishbase.py uses its input to name its output, however this can be modified with -out option.

cat species_fishbase_syn.tsv
species	synonyms
Odontesthes regia	Atherina regia, Austromenidia regia, Atherina laticlavia, Austromenidia laticlava, Chirostoma affine, Basilichthys regillus, Cauque regillus, Odontesthes regillus, Basilichthys jordani, Basilichthys octavius, Odontesthes regia
Engraulis ringens	Engraulis pulchellus, Engraulis tapirulus, Anchoviella tapirulus, Stolephorus tapirulus, Engraulis ringens
Menticirrhus undulatus	Umbrina undulata, Menticirrhus undulatus
Sciaena deliciosa	Corvina deliciosa, Sciaena deliciosa

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FishScrapping-1.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

FishScrapping-1.2-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file FishScrapping-1.2.tar.gz.

File metadata

  • Download URL: FishScrapping-1.2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5

File hashes

Hashes for FishScrapping-1.2.tar.gz
Algorithm Hash digest
SHA256 074ce04d949c3364a41730e6529f0d90c21f70b2ece6c10ee65bd5723e0abe72
MD5 33e305201cf3fd510f08f6d8718fa3f0
BLAKE2b-256 c67bce817173ab416cd08c3dbf5d20ab4989534777c82973ae6bae279a7ad8a5

See more details on using hashes here.

File details

Details for the file FishScrapping-1.2-py3-none-any.whl.

File metadata

  • Download URL: FishScrapping-1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5

File hashes

Hashes for FishScrapping-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 60c5739f8959feb6184fe6e7a60913c102c61db3c87cd617d6f7d0db17be8f7e
MD5 26f7ec72189ab1f79a29f493a48a24c1
BLAKE2b-256 c2ecba64ab24415e8c3600788fad8ca6b655f1f37ae6deae9a66151681eb22e0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page