Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
A Rust-based validation library with Python bindings, leveraging the power of pyo3 and validator crates to provide robust and efficient email validation.
This project provides a simple validation library written in Rust, with Python bindings using PyO3. The library uses the validator
crate to validate email addresses, URLs, and IP addresses.
You can install the package directly from PyPI:
pip install rusty-validator
Here's an example of how to use the validation functions in Python:
from rusty_validator import validate_email, validate_url, validate_ip
email = "example@example.com"
is_valid_email = validate_email(email)
print(f"Is valid email: {is_valid_email}")
url = "https://example.com"
is_valid_url = validate_url(url)
print(f"Is valid URL: {is_valid_url}")
ip = "127.0.0.1"
is_valid_ip = validate_ip(ip)
print(f"Is valid IP: {is_valid_ip}")
This project is licensed under the MIT License. See the LICENSE file for details.
FAQs
A Rust-based validation library with Python bindings, leveraging the power of pyo3 and validator crates to provide robust and efficient email validation.
We found that rusty-validator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.