seroapi
Muiltidomain static site hosting
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.2.7
- Package version: 0.2.7
- Generator version: 7.7.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.7+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import seroapi
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import seroapi
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import seroapi
from seroapi.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = seroapi.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with seroapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = seroapi.AccountManagementApi(api_client)
login_request = seroapi.LoginRequest() # LoginRequest |
try:
# Login user and receive JWT token.
api_response = api_instance.login(login_request)
print("The response of AccountManagementApi->login:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountManagementApi->login: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AccountManagementApi | login | POST /api/auth/login | Login user and receive JWT token. |
| AccountManagementApi | registration | POST /api/auth/registration | Register new user for sero server. |
| ActionsApi | disable_site | PATCH /api/site/disable | Disables a specific site identified by the `x-subdomain` header. |
| ActionsApi | download_site | GET /api/site | Download site of the specified subdomain. |
| ActionsApi | enable_site | PATCH /api/site/enable | Enables a specific site identified by the `x-subdomain` header. |
| ActionsApi | teardown_site | DELETE /api/site | Removes a specific site identified by the `x-subdomain` header. |
| ActionsApi | upload_site | POST /api/site | Uploads site for a specified subdomain. |
| OriginsManagementAndDynamicAccessControlApi | create_origin | POST /api/origin | Adds a new origin to a specified subdomain for dynamic CORS (Cross-Origin Resource Sharing) management. |
| OriginsManagementAndDynamicAccessControlApi | delete_all_origins | DELETE /api/origin | Delete all origins for specified subdomain for dynamic CORS (Cross-Origin Resource Sharing) management. |
| OriginsManagementAndDynamicAccessControlApi | delete_origin_by_id | DELETE /api/origin/{id} | Delete origin by id for specified subdomain for dynamic CORS (Cross-Origin Resource Sharing) management. |
| OriginsManagementAndDynamicAccessControlApi | get_all_origins | GET /api/origin | List all origins for specified subdomain for dynamic CORS (Cross-Origin Resource Sharing) management. |
| OriginsManagementAndDynamicAccessControlApi | get_origin_by_id | GET /api/origin/{id} | Get specified origin [by id] for specified subdomain for dynamic CORS (Cross-Origin Resource Sharing) management. |
Documentation For Models
- AddOriginRequest
- AddOriginResponse
- Details
- GetOriginResponse
- ListOriginsResponse
- LoginRequest
- LoginResponse
- OriginModel
- RegistrationRequest
- RegistrationResponse
Documentation For Authorization
Authentication schemes defined for the API:
Bearer-JWT
- Type: Bearer authentication (JWT)
Author
Metadata
Release files for seroapi 0.2.7
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 |
|---|---|---|---|---|
| seroapi-0.2.7.tar.gz | 25.6 kB | Without provenance | Details for seroapi-0.2.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| seroapi-0.2.7-py3-none-any.whl | Python 3 | none | any | Details for seroapi-0.2.7-py3-none-any.whl |
Total release size: 66.8 kB
Release files / seroapi-0.2.7.tar.gz
| Download URL | seroapi-0.2.7.tar.gz |
|---|---|
| Size | 25.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac8cdcb44e9fc0460f798c86bad950778684cb012c550201be6c7c5bf7a6a8f1
|
|
BLAKE2b-256 checksum How to use checksums |
8c3cdaea833e1fa94bc08ecfa12b537349f9f79639dc4174996932cd94d02abd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1025-azure
|
Release files / seroapi-0.2.7-py3-none-any.whl
| Download URL | seroapi-0.2.7-py3-none-any.whl |
|---|---|
| Size | 41.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
18490e10e8ca08e802f8928308e0e32a2c22fe9f6313581fc1ef83c43e76f653
|
|
BLAKE2b-256 checksum How to use checksums |
fee9079642d026959d45ca1ff98091d6091082b2d72172189dc537377e1c1163
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1025-azure
|
Security for seroapi 0.2.7
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.