Email Validator
This project provides a simple email validation library written in Rust, with Python bindings using PyO3. The library uses the validator
crate to validate email addresses.
Features
- Validate email addresses using Python.
Requirements
- Python 3.6 or higher
maturin
for building and publishing the Python package
Installation
To use the Python bindings, you need to build the package first. You can do this using maturin
.
- Install
maturin
:
pip install maturin
- Build and install the package:
maturin develop
This will compile the Rust code and install the Python package in your current environment.
Usage
Here's an example of how to use the email validation function in Python:
from email_validator import validate
email = "example@example.com"
is_valid = validate(email)
print(f"Is valid: {is_valid}")
Development
To contribute to this project, follow these steps:
- Clone the repository:
git clone https://github.com/yourusername/email_validator.git
cd email_validator
- Install the required dependencies:
pip install maturin
- Build the project:
maturin develop
- Run the tests:
cargo test
License
This project is licensed under the MIT License. See the LICENSE file for details.
Acknowledgements
- PyO3 for providing the Rust bindings for Python.
- Validator for the email validation functionality.
Feel free to customize this README to better fit your project's specifics and any additional details you might want to include.
pypi-AgEIcHlwaS5vcmcCJGRmMDUzMDQ0LTE4ODAtNDRkZS1iNWE0LTM5ZWU5ODFjNTk4ZgACKlszLCI1ZTY4MDA5ZS1lNDcxLTQ3NjMtYWJjMi01YTNmNTE2YTlmMWIiXQAABiB2FS1VbmZmLabSTOLz2d0Xh8sB5HMX0GWsB7AhFP06pA