Eugenia's http executor
Method to call http API
Installation
Use pip:
pip install ehttp-executor
Please use Python 3.8 and above
How to use
Create the input dictionary, then invoke the method with these parameters:
- HTTP URL
- Process name
- Input dictionary
Example:
from ehttp_executor.ehttp_caller import call_python_api
input_data = {
"status": "Loaded",
"statusCode": 404,
"testDate": "16/07/2030",
"abruptEnd": True,
"logs": [
"Rodrigo logged in",
"Henry logged in",
"Rodrigo logged out",
"Henry logged out"
],
"developers": [
{
"name": "Rodrigo",
"age": 43,
"logins": [
{
"loginInfo": "Login saturday 5AM"
},
{
"loginInfo": "Logout saturday 8AM"
}
]
},
{
"name": "Henry",
"age": 46,
"logins": [
{
"loginInfo": "Login thursday 9AM"
},
{
"loginInfo": "Logout monday 11AM"
}
]
}
]
}
json_output = call_python_api("http://localhost:5000/", "PythonBBasic261020211724", input_data)
print (type(json_output))
print (json_output)
Metadata
Release files for ehttp-executor 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ehttp-executor-1.0.0.tar.gz | 2.1 kB | Without provenance | Details for ehttp-executor-1.0.0.tar.gz |
Release files / ehttp-executor-1.0.0.tar.gz
| Download URL | ehttp-executor-1.0.0.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ed7aab0e54e954cc97f61067ccd7cc9a0ec5afb965bda2dd83384761247f2ee
|
|
BLAKE2b-256 checksum How to use checksums |
4660108ef693e9505e59ac39a3bd59961a0e0dc3132fdc35a559d3613d27eddf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
|
Security for ehttp-executor 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.