Skip to content

Commit

Permalink
:bookmar: releasing 0.0.1 pre release:
Browse files Browse the repository at this point in the history
  • Loading branch information
codeperfectplus committed Nov 18, 2022
1 parent 5d875c7 commit c6c7385
Show file tree
Hide file tree
Showing 28 changed files with 34 additions and 41 deletions.
24 changes: 7 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,21 @@
<h1 align="center"><a href="#"> Validator.py(temp)</a></h1>
<h1 align="center"><a href="#">Sanatio</a></h1>
Sanatio is a latin word which mean Validation.

Document/String/Number/Date Validator for Python. Highly inspired by [validator.js](https://github.com/validatorjs/validator.js).
Document/String/Number/Date/Email/Username/Password Validator for Python. Inspired by [validator.js](https://github.com/validatorjs/validator.js).

## Installation

```bash
pip install <releasing_soon>
pip install sanatio
```

## Documentation

Check out the [documentation](https://validator-py.readthedocs.io/en/latest/index.html) for more information.

## Supported Countries

| Country | Code | Supported |
| --- | --- | --- |
| Afghanistan | AF ||
| India | IN ||
| United States | US ||
| Saudi Arabia | SA ||
| South Africa | ZA ||
| United Kingdom | GB ||
| Singapore | SG ||
| Pakistan | PK ||

After the stable release, we will add more countries.
Support us by giving a ⭐️ to this repository and follow us for more updates.

## Roadmap

Support us by giving a ⭐️ to this repository and follow us for more updates.
Check out the [roadmap](https://github.com/py-contributors/sanatio/ROADMAP.MD) for more information.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/main.py → sanatio/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from dateutil.parser import parse
from Levenshtein import distance as levenshtein_distance

from src.utils import all_country, regexs
from sanatio.utils import all_country, regexs

class Validator(object):
""" Validator class for validating the data """
Expand Down
2 changes: 1 addition & 1 deletion src/utils.py → sanatio/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import re

ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
ASSETS_DIR = os.path.join(ROOT_DIR, 'src/assets')
ASSETS_DIR = os.path.join(ROOT_DIR, 'sanatio/assets')


def load_json(filename):
Expand Down
2 changes: 1 addition & 1 deletion scripts/test_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ check_file() {
check_command git
check_command flake8
check_command twine
check_file setup.py
check_file ./setup.py
python3 setup.py sdist bdist_wheel
check_directory dist
python3 -m twine upload --repository testpypi dist/*
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import setuptools
from glob import glob

with open("README.md", "r") as fh:
long_description = fh.read()
Expand All @@ -7,14 +8,15 @@
requirements = fh.read().splitlines()

setuptools.setup(
name="",
name="Sanatio",
version="0.0.1",
author="Deepak Raj",
author_email="deepak008@live.com",
description="",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Py-Contributors/validator.py",
data_files=[('assets', glob('sanatio/assets/*'))],
keywords="audiobook",
install_requires=requirements,
packages=setuptools.find_packages(),
Expand All @@ -27,4 +29,5 @@
"Operating System :: OS Independent",
"Intended Audience :: Developers"],
python_requires=">=3.4",
include_package_data=True,
)
2 changes: 1 addition & 1 deletion tests/credit_card_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/date_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import datetime
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/document/driving_license_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/document/license_plate_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/document/mobilephone_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/document/passport_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/document/postal_code_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/document/ssn_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/email_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/hash_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/imei_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/ip_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/json_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/lat_long_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/mac_address_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/number_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/password_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/string_case_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/string_conversion_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down
2 changes: 1 addition & 1 deletion tests/username_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
import unittest
sys.path.append('.')
from src.main import Validator
from sanatio.main import Validator

validator = Validator()

Expand Down

0 comments on commit c6c7385

Please sign in to comment.