Commit 1e555133 authored by Christophe Benz's avatar Christophe Benz

Don't rely on ujson, use json

parent d2519ac8
...@@ -26,7 +26,6 @@ setup( ...@@ -26,7 +26,6 @@ setup(
install_requires=[ install_requires=[
'flask', 'flask',
'requests', 'requests',
'ujson',
'validata_validate', 'validata_validate',
'goodtables', 'goodtables',
......
#!/usr/bin/env python3 #!/usr/bin/env python3
import json
import re import re
from datetime import datetime from datetime import datetime
import ujson as json
FRENCH_DATE_RE = re.compile(r'^[0-3]\d/[0-1]\d/[12]\d{3}$') FRENCH_DATE_RE = re.compile(r'^[0-3]\d/[0-1]\d/[12]\d{3}$')
DATETIME_RE = re.compile(r'^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$') DATETIME_RE = re.compile(r'^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}$')
......
#!/usr/bin/env python3 #!/usr/bin/env python3
""" Call validation code """ """ Call validation code """
from pathlib import Path import logging
import requests import requests
import ujson as json
from validata_validate import validate from validata_validate import validate
# #
# MEMENTO: json.load(pkg_resources.resource_stream('validata_validate', 'spec.json')) # MEMENTO: json.load(pkg_resources.resource_stream('validata_validate', 'spec.json'))
# #
import logging
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment