Skip to content

Commit c6c7385

Browse files
:bookmar: releasing 0.0.1 pre release:
1 parent 5d875c7 commit c6c7385

28 files changed

+34
-41
lines changed

README.md

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,21 @@
1-
<h1 align="center"><a href="#"> Validator.py(temp)</a></h1>
1+
<h1 align="center"><a href="#">Sanatio</a></h1>
2+
Sanatio is a latin word which mean Validation.
23

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

56
## Installation
67

78
```bash
8-
pip install <releasing_soon>
9+
pip install sanatio
910
```
1011

1112
## Documentation
1213

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

15-
## Supported Countries
16-
17-
| Country | Code | Supported |
18-
| --- | --- | --- |
19-
| Afghanistan | AF ||
20-
| India | IN ||
21-
| United States | US ||
22-
| Saudi Arabia | SA ||
23-
| South Africa | ZA ||
24-
| United Kingdom | GB ||
25-
| Singapore | SG ||
26-
| Pakistan | PK ||
27-
2816
After the stable release, we will add more countries.
17+
Support us by giving a ⭐️ to this repository and follow us for more updates.
2918

19+
## Roadmap
3020

31-
Support us by giving a ⭐️ to this repository and follow us for more updates.
21+
Check out the [roadmap](https://github.com/py-contributors/sanatio/ROADMAP.MD) for more information.
File renamed without changes.

src/main.py renamed to sanatio/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from dateutil.parser import parse
55
from Levenshtein import distance as levenshtein_distance
66

7-
from src.utils import all_country, regexs
7+
from sanatio.utils import all_country, regexs
88

99
class Validator(object):
1010
""" Validator class for validating the data """

src/utils.py renamed to sanatio/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import re
44

55
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
6-
ASSETS_DIR = os.path.join(ROOT_DIR, 'src/assets')
6+
ASSETS_DIR = os.path.join(ROOT_DIR, 'sanatio/assets')
77

88

99
def load_json(filename):

scripts/test_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ check_file() {
2525
check_command git
2626
check_command flake8
2727
check_command twine
28-
check_file setup.py
28+
check_file ./setup.py
2929
python3 setup.py sdist bdist_wheel
3030
check_directory dist
3131
python3 -m twine upload --repository testpypi dist/*

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import setuptools
2+
from glob import glob
23

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

910
setuptools.setup(
10-
name="",
11+
name="Sanatio",
1112
version="0.0.1",
1213
author="Deepak Raj",
1314
author_email="deepak008@live.com",
1415
description="",
1516
long_description=long_description,
1617
long_description_content_type="text/markdown",
1718
url="https://github.com/Py-Contributors/validator.py",
19+
data_files=[('assets', glob('sanatio/assets/*'))],
1820
keywords="audiobook",
1921
install_requires=requirements,
2022
packages=setuptools.find_packages(),
@@ -27,4 +29,5 @@
2729
"Operating System :: OS Independent",
2830
"Intended Audience :: Developers"],
2931
python_requires=">=3.4",
32+
include_package_data=True,
3033
)

tests/credit_card_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
import unittest
33
sys.path.append('.')
4-
from src.main import Validator
4+
from sanatio.main import Validator
55

66
validator = Validator()
77

tests/date_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import datetime
33
import unittest
44
sys.path.append('.')
5-
from src.main import Validator
5+
from sanatio.main import Validator
66

77
validator = Validator()
88

0 commit comments

Comments
 (0)