A simple temperature conversion tool
Project description
Tempconvert
A simple Python package to convert temperatures between Celsius and Fahrenheit.
📦 Installation
# Install via pip (from PyPI)
pip install tempconvert-atharv22
# Or if you're using Poetry for development
poetry install
🚀 Usage
# Example Python usage
from tempconvert import celsius_to_fahrenheit, fahrenheit_to_celsius
print(celsius_to_fahrenheit(0)) # Output: 32.0
print(fahrenheit_to_celsius(212)) # Output: 100.0
🧪 Running Tests
# Make sure you're in the virtual environment. Then run:
pytest
# All test cases are inside the tests/ folder
# For example:
tests/test_main.py
🔧 Development Setup
# Clone the repository
git clone https://github.com/YOUR_USERNAME/tempconvert
cd tempconvert
# Install dependencies using Poetry
poetry install
# Activate the virtual environment
poetry env info --path
# Then manually activate it based on your OS path
📤 Publish to PyPI (For Maintainers Only)
# Make sure you have the correct PyPI token set in GitHub secrets as PYPI_API_TOKEN
# Bump the version in pyproject.toml
# Tag the new version:
git tag v0.1.x
git push origin v0.1.x
# GitHub Actions will auto-publish to PyPI
🤝 Contributing
# Feel free to fork and create PRs!
# Make sure to include test coverage for new features.
📄 License
MIT License © Atharv Chougale
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 tempconvert_atharv22-0.1.3.tar.gz.
File metadata
- Download URL: tempconvert_atharv22-0.1.3.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.3 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdf2078eb87129e00ff3010bdf7f3ec0fa3c94083affa5471d120baef26e62ad
|
|
| MD5 |
3f896bcfbca5a010545783fad4c57ea1
|
|
| BLAKE2b-256 |
ccb91c04eb7c7b67ce154ce429bebd8c8c3e69bb4b611b0c5b5195305daaffe9
|
File details
Details for the file tempconvert_atharv22-0.1.3-py3-none-any.whl.
File metadata
- Download URL: tempconvert_atharv22-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.13.3 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc677b2da6cd07a698fbee368b33f70c15b239456c1ca20531d18b6a337490c2
|
|
| MD5 |
176047a65ee8e7956dce3b26971f9fdf
|
|
| BLAKE2b-256 |
d6de2b068d3361e3019ef077d20d4d39aa13c2f13d18c01ff0c85279f905a631
|