Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wynwxst/ramael
HTTP but modern, HTTP but elegant, CURL but modern, CURL but elegant
https://github.com/wynwxst/ramael
Last synced: 20 days ago
JSON representation
HTTP but modern, HTTP but elegant, CURL but modern, CURL but elegant
- Host: GitHub
- URL: https://github.com/wynwxst/ramael
- Owner: wynwxst
- Created: 2022-03-07T10:02:33.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-07T10:02:50.000Z (almost 3 years ago)
- Last Synced: 2024-11-13T04:33:55.122Z (3 months ago)
- Language: Python
- Size: 47.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ramael
Ramael - An elegant http library focused on simplicity### About:
An elegant modern http requests library for python### Installtion:
`pip install ramael`### Usage:
```python
import ramael
req = ramael.request(method="GET",url="someurl",headers={},callback=None,auth=None)
# or for a oneliner:
r = ramael.request("GET",url="someurl")
# methods for the ramael object
req.headers # headers in json format
req.raw_headers # headers in an object
req.status # Status eg 200
req.text # text in string
req.json() # text jsonified
req.bytes_text # completely raw text dk why you might want this
```### Development:
Install buildproj:`pip install buildproj`
`build`
In case of the binary not working:
`python buildbinary.py`
All processes are automated except for the sign in for pip, please be sure to also change the version and name in `setup.py
### Tests:
Install buildproj:`pip install buildproj`
`build test`
In case of the binary not working:
`python buildbinary.py test`
### Todo:
make a binary for it
`.cli`