Skip to content

Commit ad23b27

Browse files
committed
patch: moves country_code module to country module
- feat: adds `currency` and `calling_code` validators
1 parent cab0c87 commit ad23b27

File tree

10 files changed

+448
-214
lines changed

10 files changed

+448
-214
lines changed

docs/api/country.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# country
2+
3+
::: validators.country.calling_code
4+
::: validators.country.country_code
5+
::: validators.country.currency

docs/api/country.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
country
2+
-------
3+
4+
.. module:: validators.country
5+
.. autofunction:: calling_code
6+
.. autofunction:: country_code
7+
.. autofunction:: currency

docs/api/country_code.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/api/country_code.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

mkdocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ nav:
7272
- api/between.md
7373
- api/btc_address.md
7474
- api/card.md
75-
- api/country_code.md
75+
- api/country.md
7676
- api/cron.md
7777
- api/domain.md
7878
- api/email.md

src/validators/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from .between import between
55
from .btc_address import btc_address
66
from .card import amex, card_number, diners, discover, jcb, mastercard, unionpay, visa
7-
from .country_code import country_code
7+
from .country import calling_code, country_code, currency
88
from .cron import cron
99
from .domain import domain
1010
from .email import email
@@ -37,8 +37,10 @@
3737
"mastercard",
3838
"visa",
3939
"unionpay",
40-
# ...
40+
# country
41+
"calling_code",
4142
"country_code",
43+
"currency",
4244
# ...
4345
"cron",
4446
# ...

0 commit comments

Comments
 (0)