Releases: genie360s/nambazasimu
Releases · genie360s/nambazasimu
Namba Za Simu
nambazasimu 0.1.0 Release Notes
Release Date: June 19, 2024
We are excited to announce the initial release of nambazasimu
, a Python package designed to identify Tanzanian phone number carriers. This release includes the core functionality and comprehensive documentation to help users get started quickly.
New Features
- Carrier Identification: Determine the carrier (Airtel, Voda, Tigo, Halotel, Zantel, Smile or TTCL) of a Tanzanian phone number.
from nambazasimu.carrier_identifier import identify_carrier print(identify_carrier("+255684567890")) # Output: Airtel print(identify_carrier("255754567890")) # Output: Voda print(identify_carrier("0714567890")) # Output: Tigo
Documentation
- Comprehensive README: Detailed instructions on how to install, use, and contribute to the package.
- Installation Guide: Step-by-step instructions to install
nambazasimu
using pip. - Usage Examples: Code snippets demonstrating how to use the core functionality of the package.
- Contribution Guidelines: Information on how to fork the repository, make changes, and submit a pull request.
- References: Links to useful resources such as the Wikipedia article on Tanzanian phone numbers and a Jamii Forums thread discussing carrier identification.
How to Install
To install nambazasimu
, use pip:
pip install nambazasimu
How to Use
To identify the carrier of a Tanzanian phone number, import the identify_carrier
function and pass the phone number as an argument:
from nambazasimu.carrier_identifier import identify_carrier
print(identify_carrier("+255684567890")) # Output: Airtel
How to Contribute
We welcome contributions! Please follow these steps to contribute:
- Fork the repo: Click the "Fork" button at the top right of the repository page.
- Clone the forked repo:
git clone https://github.com/yourusername/nambazasimu.git
- Navigate to the project directory:
cd nambazasimu
- Set up a Python environment and install the requirements:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` pip install -r requirements.txt
- Make your changes, and be sure to write tests if necessary.
- Commit your changes:
git add . git commit -m "Description of your changes"
- Push your changes to your fork:
git push origin your-branch-name
- Raise a Pull Request: Go to the original repository and create a new pull request.
Issues and Feedback
If you encounter any issues or have feedback, please report them via the GitHub issues page. Provide as much detail as possible about the issue, including any error messages and steps to reproduce the problem.
References
- Wikipedia article on Tanzanian phone numbers
- Jamii Forums thread on identifying phone numbers by network