We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AGS4.check_file()
convert
Bonus -
bgs.py
ags.py
dataclean
sys.exit()
to_html
v1
/api/v1/?validatedata?
POST: Binary upload of file Response: {"result": "true"} ? Errors: 400 - some problem with uploaded file
{"result": "true"}
/api/v1/?clean?
def validatedata(filename: Path) -> Dict: # return Dictionary / JSON with data errors pass
class Validation(BaseModel): filename: str = Field(..., example="example.ags") filesize: str = Field(None, example="1 kB") checker: str = Field(None, example="python_ags4 v0.3.6") dictionary: str = Field(None, example="Standard_dictionary_v4_1.ags") time: str = Field(None, example="2021-08-18 09:23:29") message: str = Field(None, example="7 error(s) found in file!") results: Dict = Field(None, example="")
from:
{'Rule 2a': [{'line': 1, 'group': '', 'desc': 'Is not terminated by <CR> and <LF> characters.'}], 'Rule 3': [{'line': 1, 'group': '', 'desc': 'Does not start with a valid data descriptor.'}], 'Rule 5': [{'line': 1, 'group': '', 'desc': 'Contains fields that are not enclosed in double quotes.'}], 'Rule 13': [{'line': '-', 'group': 'PROJ', 'desc': 'PROJ table not found.'}], 'Rule 14': [{'line': '-', 'group': 'TRAN', 'desc': 'TRAN table not found.'}], 'Rule 15': [{'line': '-', 'group': 'UNIT', 'desc': 'UNIT table not found.'}], 'Rule 17': [{'line': '-', 'group': 'TYPE', 'desc': 'TYPE table not found.'}], 'Metadata': [{'line': 'File Name', 'group': '', 'desc': 'nonsense.ags'}, {'line': 'File Size', 'group': '', 'desc': '0 kB'}, {'line': 'Checker', 'group': '', 'desc': 'python_ags4 v0.3.6'}, {'line': 'Dictionary', 'group': '', 'desc': 'Standard_dictionary_v4_1.ags'}, {'line': 'Time (UTC)', 'group': '', 'desc': '2021-08-23 13:19:46'}]}
The text was updated successfully, but these errors were encountered:
Closing as ongoing tasks moved to #59
Sorry, something went wrong.
No branches or pull requests
Tasks
AGS4.check_file()
rather than the CLI (JSON response)AGS4.check_file()
rather than the CLI (text response)convert
function to use library instead of CLIconvert
Bonus -
bgs.py
andags.py
print to consoledataclean
sys.exit()
calls in upstream libraryto_html
function to backendto_html
parameter to APIQuestions
v1
code, given than there are no real users yet?Details
API specification
/api/v1/?validatedata?
POST: Binary upload of file
Response:
{"result": "true"}
?Errors: 400 - some problem with uploaded file
/api/v1/?clean?
POST: Binary upload of file
Response:
{"result": "true"}
?Errors: 400 - some problem with uploaded file
Backend function specification
Schema
from:
Discussion
The text was updated successfully, but these errors were encountered: