Simple Python wrapper for seedfinder.eu's API
Project description
seedfinder-python
Simple Python wrapper for seedfinder.eu's API.
Install
pip install seedfinder
Setup
You will need to create an account at seedfinder.eu and verify a domain or IP in order to access the API.
To authorize requests, you need to either make a request from a verfied address or initialize the SeedFinder object with your API token.
Note: seedfinder.eu requires that you register an address even if you are only accessing the API by token.
Usage
Initialize the API object
from seedfinder import SeedFinder
sf = SeedFinder('YOUR API KEY')
Search for strains
sf.searchStrain('fuel')
Search for a strain using exact query
sf.searchStrain('Alien Kush', exact=True)
Search by word and get detailed strain information from the first result
search_results = sf.searchStrain('purp')
first_result = [v for k,v in search_results['strains'].items()][0]
sf.strainInfo(first_result['id'], first_result['brid'])
Get three generations of parent strains
sf.parents('Girl_Scout_Cookies', breeder_id='Clone_Only_Strains', generations=3)
Get direct (first generation) hybrids
sf.hybrids('Puta_Breath', breeder_id='ThugPug_Genetics')
List all of a breeder's strains
sf.breederInfo('Exotic_Genetix')
API Documentation
See seedfinder.eu's API documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.