A CLI tool for finding countries based on city names using OpenAI's chat model
Project description
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.
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.
Source Distribution
Built Distribution
File details
Details for the file globadoo-0.1.1.tar.gz
.
File metadata
- Download URL: globadoo-0.1.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.12.4 Linux/6.5.0-1024-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e998806854f2f533e9ad43ae0334b2987c9016cb6a5c4bbf1bca418179bf1031 |
|
MD5 | c0cc29965fd05a14fc3c46bc1fe3d0c4 |
|
BLAKE2b-256 | fa719b053dd85cc3f02b02be6589d327f5bf8bc2dc4a06f75ee581dd86f328d0 |
File details
Details for the file globadoo-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: globadoo-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.12.4 Linux/6.5.0-1024-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad3aaf5be21a9d5e155f83a3c5962c7c426f275d82390a7d7cee5a664ef084cf |
|
MD5 | 7a8f3fd2739c27c2fa6c41a399634ad9 |
|
BLAKE2b-256 | 12803243c6f8e602b06127607381553c0ca55e75530cc13e6edae7702ae5ee0b |