Skip to content

Commit

Permalink
Merge pull request #6 from codeperfectplus/features/dev
Browse files Browse the repository at this point in the history
Features/dev
  • Loading branch information
codeperfectplus authored Jun 2, 2024
2 parents 6f1d17f + 2aae414 commit c41dc17
Show file tree
Hide file tree
Showing 86 changed files with 1,294 additions and 1,706 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/run-pytest.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,16 @@ build:
os: ubuntu-22.04
tools:
python: "3.12"
# You can also specify other tool versions:
# nodejs: "20"
# rust: "1.70"
# golang: "1.20"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/conf.py
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
# builder: "dirhtml"
# Fail on all warnings to avoid broken references
# fail_on_warning: true

# Optionally build your docs in additional formats such as PDF and ePub
formats:
- pdf
- epub

# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: docs/requirements.txt
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## First Release
## First Release Version 1.0.0 - 31-May-2024

- initial features release with encoding and decoding
- Initial release of the project.

## Second Release Version 1.1.0

- added new functionality
- Function added to check if a given EAN-13 barcode is valid or not
- Array validation multiple functions added

- documentation added
- code refactored and code quality improved
- test cases and test coverage added
- bug fixes
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Contributing to Validator.py
# Contributing to Sanatio

We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:

Expand All @@ -21,7 +21,7 @@ We love your input! We want to make contributing to this project as easy and tra
- Add a upstream link to main branch in your cloned repo

```sh
git remote add upstream https://github.com/Py-Contributors/validator.py/
git remote add upstream https://github.com/codeperfectplus/Sanatio/
```

- Keep your cloned repo upto date by pulling from upstream (this will also avoid any merge conflicts while committing new changes)
Expand Down
2 changes: 1 addition & 1 deletion ROADMAP.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Validator.py is simple python tool to validate Document/String/Number/Date/Email/Username/Password.
Sanatio is simple python tool to validate Document/String/Number/Date/Email/Username/Password.

Currently it supports following Document validation: Few countries added in initial release. More countries will be added in future release.

Expand Down
80 changes: 0 additions & 80 deletions create_table.py

This file was deleted.

2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

project = 'Sanatio'
author = 'Deeapk Raj'
release = '1.0.0'
release = '1.1.0'

extensions = [
'sphinx.ext.autodoc',
Expand Down
4 changes: 2 additions & 2 deletions docs/date/date.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ The following functions are used to validate dates. They return a boolean value

.. code:: python
from sanatio import Validator
from sanatio import Sanatio
val = Validator()
val = Sanatio()
:code:`IsDate()` Returns true if the value is a valid date.
args: value
Expand Down
4 changes: 2 additions & 2 deletions docs/document/aadhar_card.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ aadhar card is 12 digit number.

.. code:: python
from sanatio import Validator
from sanatio import Sanatio
val = Validator()
val = Sanatio()
:code:`isAadharCard(value)` - check if the value is a valid aadhar card number.
>>> val.isAadharCard('9284 9436 2499')
Expand Down
4 changes: 2 additions & 2 deletions docs/document/card.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ boolean value.

.. code:: python
from sanatio import Validator
from sanatio import Sanatio
val = Validator()
val = Sanatio()
:code:`isCreditCard(value)` - Checks if the value is a valid credit card number.

Expand Down
4 changes: 2 additions & 2 deletions docs/document/licenseplate.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ Check if a license plate is valid or not.

.. code:: python
from sanatio import Validator
from sanatio import Sanatio
val = Validator()
val = Sanatio()
:code:`isLicensePlate()` - Check if a license plate is valid or not.
args: value
Expand Down
4 changes: 2 additions & 2 deletions docs/document/mobilenumber.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ mobile number ranges published by the ITU-T E.164. The list is updated

.. code:: python
from sanatio import Validator
from sanatio import Sanatio
val = Validator()
val = Sanatio()
:code:`isMobilePhone(value, locale)` - checks if the string is a valid mobile phone number.

Expand Down
4 changes: 2 additions & 2 deletions docs/document/passport.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ This module provides a validation for passport numbers.

.. code:: python
from sanatio import Validator
from sanatio import Sanatio
val = Validator()
val = Sanatio()
:code:`isPassportNumber(value, locale):` - Return True if the string is a valid passport number.
Args: value, locale
Expand Down
4 changes: 2 additions & 2 deletions docs/document/postalcode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ The following functions are used to validate postal codes.

.. code:: python
from sanatio import Validator
from sanatio import Sanatio
val = Validator()
val = Sanatio()
:code:`isPostalCode(value, locale)` - return true if the postal code is valid for the country
args: value, locale
Expand Down
4 changes: 2 additions & 2 deletions docs/email/email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ The following functions are used to validate email addresses.

.. code:: python
from sanatio import Validator
from sanatio import Sanatio
val = Validator()
val = Sanatio()
:code:`isEmail()` - Returns true if the email address is valid, false otherwise.
args: value, checkDNS
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. rst-class:: hide-header

Welcome to Validator.py's documentation!
Welcome to Sanatio's documentation!
=====================================


Expand Down
21 changes: 10 additions & 11 deletions docs/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,26 @@ This library is written in pure python and is very easy to use.
It is a simple library that can be used to validate strings, documents, emails, dates, urls, domain names, etc.

Installation
============
------------

To install the library, you can use pip:

```bash
pip install sanatio
```
:code:` pip install sanatio`

Usage-Examples
--------------

Usage
=====
.. code:: python
```python
from sanatio import Validator
val = Validator()
from sanatio import Sanatio
val = Sanatio()


# Check if the string is equal to the given value

```python
.. code:: python
val.equals("abc", "abc") # True
```



Expand Down
4 changes: 2 additions & 2 deletions docs/number/number_validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ The following functions are used to validate numbers.

.. code:: python
from sanatio import Validator
from sanatio import Sanatio
val = Validator()
val = Sanatio()
:code:`isDecimal(value)`
Returns true if the value is a decimal number.
Expand Down
9 changes: 9 additions & 0 deletions docs/other/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Number Validation
=================

.. toctree::
:maxdepth: 2

other.rst


17 changes: 17 additions & 0 deletions docs/other/other.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Number Validation functions
===========================

The following functions are used to

.. code:: python
from sanatio import Sanatio
val = Sanatio()
:code:`isEan13` - Check if the value is a valid EAN13 number
Returns true if the value is a valid EAN13 number

>>> val.isEan13('0067238891190')
True

4 changes: 2 additions & 2 deletions docs/password/password.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ The password validation is done by the function isStrongPassword().

.. code:: python
from sanatio import Validator
from sanatio import Sanatio
val = Validator()
val = Sanatio()
:code:`isStrongPassword(value)`
Returns true if the password is strong enough, false otherwise.
Expand Down
Loading

0 comments on commit c41dc17

Please sign in to comment.