Globadoo
Globadoo is a Python library for finding the country of a given city using OpenAI chat model.
Installation
To install Globadoo, use the following command:
pip install globadoo
Usage
Here's a basic example of how to use Globadoo:
pipx install globadoo
export OPENAI_API_KEY="your-api-key"
globadoo "New York"
This returns
{"city":"New York","country":"United States","country_code":"US"}
API Reference
The main function of Globadoo is find_country(city, llm_config), which takes a city name and an LLMConfig model as arguments and returns the country of the city.
Tests
To run the tests for Globadoo, use the following command:
pytest tests
Contributing
Contributions to Globadoo are welcome. Please submit a pull request with your changes.
License
Globadoo is licensed under the MIT License.
Contact
For any questions or concerns, please open an issue on the GitHub repository.
Metadata
Release files for globadoo 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| globadoo-0.1.1.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| globadoo-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.2 kB
Release files / globadoo-0.1.1.tar.gz
| Download URL | globadoo-0.1.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e998806854f2f533e9ad43ae0334b2987c9016cb6a5c4bbf1bca418179bf1031
|
|
BLAKE2b-256 checksum How to use checksums |
fa719b053dd85cc3f02b02be6589d327f5bf8bc2dc4a06f75ee581dd86f328d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.12.4 Linux/6.5.0-1024-azure
|
Release files / globadoo-0.1.1-py3-none-any.whl
| Download URL | globadoo-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad3aaf5be21a9d5e155f83a3c5962c7c426f275d82390a7d7cee5a664ef084cf
|
|
BLAKE2b-256 checksum How to use checksums |
12803243c6f8e602b06127607381553c0ca55e75530cc13e6edae7702ae5ee0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.12.4 Linux/6.5.0-1024-azure
|