No project description provided
Project description
Simple cli client for ja.is
Personal tool that is probably not useful for anyone else
Install
pip install jais-search
Play around
Start by exporting your api token
export JAIS_API_KEY=your-token
Alternatively you can always pass it as an argument to each command, but that's just boring
jais search --token your-token -n "Code"
The token will be inferred from your environment
jais search -n "Code"
Only one command is available, that is search, but comes with multiple search filter options.
jais search --help
Search examples
jais search -n "Banana"
jais search -p 105 # postal code
jais search -s Suðurlandsbraut # street
jais search -m Reykjavík # municipality
jais search -b E1 # business type, I have no idea what codes are available.
Or just pass them all in if you want
jais search -n "Banana" -p 105 -s Suðurlandsbraut -m Reykjavík municipality -b E1
It will store results in test.csv, until I make it configurable and fix the dict serialization.
The https://ja.is api paginates the data so you have to pass in --start [default: 1] and --count [default: 1000], but it comes with defaults.
# Get me 50 records and start at record 1000
jais search -n "Banana" --start 1000 --count 50
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jais_search-0.1.3.tar.gz.
File metadata
- Download URL: jais_search-0.1.3.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/6.2.13-300.fc38.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
852c8c6fdd4aa5e7eb3910faef84ca5fd2d39aac66687bb301c86512873bd46a
|
|
| MD5 |
e87b29efe8e1a7e3db6d1ef1f5b2ed04
|
|
| BLAKE2b-256 |
806f8d0b6548629f6c3104a09e601648bef6ff1128fef09451159d52764bf32a
|
File details
Details for the file jais_search-0.1.3-py3-none-any.whl.
File metadata
- Download URL: jais_search-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.3 Linux/6.2.13-300.fc38.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8551d6430a29f919764a0ed9df84c70e7279c7b2468380ae9fb2c43cb0cef210
|
|
| MD5 |
9603fddfac4e3e1fba2c4caa960459b8
|
|
| BLAKE2b-256 |
d40231b88da0273ecb7b93159197b2d63b608e02648a38b91bb0ca00d9e97c25
|