A powerful CLI tool for calculations, unit conversions, and translations using Numo
Project description
Numo CLI
A powerful command-line interface for calculations, unit conversions, and translations.
Features
- Simple arithmetic calculations
- Unit conversions (length, mass, currency, etc.)
- Text translations
- Interactive shell mode
- Batch processing of multiple expressions
Installation
You can install Numo CLI using pip:
pip install numo-cli
After installation, you might need to add Python's user scripts directory to your PATH. For macOS/Linux, add this line to your ~/.zshrc or ~/.bashrc:
export PATH="$HOME/Library/Python/3.9/bin:$PATH" # Adjust Python version as needed
Then reload your shell:
source ~/.zshrc # or source ~/.bashrc
Usage
You can use Numo CLI in two ways:
1. Direct Command (Recommended)
Run in interactive mode:
numo-cli
Or with direct calculations:
numo-cli "2 + 2"
numo-cli "1 km to m"
numo-cli "hello in spanish"
2. Python Module
If the direct command doesn't work, you can always use the Python module syntax:
python -m numo_cli
Or with arguments:
python -m numo_cli "2 + 2"
python -m numo_cli "1 km to m"
python -m numo_cli "hello in spanish"
Example Commands
Here are some examples of what you can do in either mode:
>>> 2 + 2
4
>>> 1 km to m
1000 m
>>> hello in spanish
hola
>>> 100 usd to eur
91.85 EUR
Requirements
- Python 3.7 or higher
numopackageaiohttptyping-extensions
Development
- Clone the repository:
git clone https://github.com/furkancosgun/numo-cli.git
cd numo-cli
- Create a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Install in development mode:
pip install -e .
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
- Furkan Cosgun (@furkancosgun)
Acknowledgments
- Built with Numo library
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
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 numo_cli-0.1.3.tar.gz.
File metadata
- Download URL: numo_cli-0.1.3.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4408e9320b9ca46b52246870dd45b573ccab5613faee50b58698bb5c659dba1b
|
|
| MD5 |
baf63e0cf1035c7e9911480fccec2625
|
|
| BLAKE2b-256 |
518af3599821c97f95b3e2337533208f0f2c61c33ebb9278688ca1426bede69a
|
File details
Details for the file numo_cli-0.1.3-py3-none-any.whl.
File metadata
- Download URL: numo_cli-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3887b9a537451a0402243c39d66965ecc4e834a056ffbbf13330f10a284379c8
|
|
| MD5 |
b632770e2e399981ad480330992a2f79
|
|
| BLAKE2b-256 |
c0fd1a460ca710282f5923b2c2c567464e2421d5b447ee404f3a2cdc0c9b0e68
|