No project description provided
Project description
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
Feel free to customize this README to better fit your project's specifics and any additional details you might want to include.
pypi-AgEIcHlwaS5vcmcCJGRmMDUzMDQ0LTE4ODAtNDRkZS1iNWE0LTM5ZWU5ODFjNTk4ZgACKlszLCI1ZTY4MDA5ZS1lNDcxLTQ3NjMtYWJjMi01YTNmNTE2YTlmMWIiXQAABiB2FS1VbmZmLabSTOLz2d0Xh8sB5HMX0GWsB7AhFP06pA
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 Distributions
Built Distribution
File details
Details for the file rusty_email_validator-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: rusty_email_validator-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 29.1 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54574477577265266992d074ad1f3d14eaec6700c7981b32aa1c27321fb7b773 |
|
MD5 | bfc098394dc94028cca0687da4695160 |
|
BLAKE2b-256 | 5149ee7c4e3148caee8f77cbfad40ba4e4a3127ddea826385d6e6c8899000e23 |