Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashkan0201/json_or_txt
https://github.com/ashkan0201/json_or_txt
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ashkan0201/json_or_txt
- Owner: ashkan0201
- Created: 2023-09-04T12:08:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-06T01:21:22.000Z (about 1 year ago)
- Last Synced: 2023-10-06T02:25:18.152Z (about 1 year ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Json_or_txt
Hello, I am Ashkan.With this code, you understand the decorators, how we have used it for the code we presented?
Now I will explain about this code.
This code opens a file, then tries to read it as json, but if it encounters an error, the program understands that it should read it as text, and even if it encounters an error, it will show a message to the user.## Installation
```bash
$ pip install json5
```
or
```bash
$ pip install -r requirements.txt
```## My information
Email me if you see a bug: