Static Pages Client
API Repository for Static Pages Client
📝 Installation
Install using your favourite package manager
pip install static_pages_client
📦️ Methods
| Name | Type | Description |
|---|---|---|
| set_host | function | Set client host |
| set_silent | function | Silence errors |
| set_api_key | function | Set client api key |
| set_authorization | function | Set client authorization token |
| make_application | function | Create a static pages application |
| make_application_user | function | Create a static pages application user or users |
| make_application_user_token | function | Create an application user authorization token |
| requester | function | Static api caller |
| v1 | function | Exposes v1 caller api methods |
| v2 | function | Exposes v2 caller api method |
🔧 Usage
Init Static Client
static = StaticAPI(host='domain/api/')
Create Application
static.make_application()
hash equals to X-API-Key header
Set Application Key
static.set_api_key(key='hash')
Create Application Users
static.make_application_user(users=[{
'email': 'someone@ebs-integrator.com',
}])
Create Application User
static.make_application_user(user={
'email': 'someone.else@ebs-integrator.com',
})
Create Application User Token
token = static.make_application_user_token(email='someone.else@ebs-integrator.com', secret='super')
Or use the settings property in application to setup secret and use tokens from your own main service
Set Authorization
static.set_authorization(token=token)
Make V1 Requests
static.v1(method='get', endpoint='article/')
Make V2 Requests
static.v2(method='post', endpoint='job/', data={'i18n': {'ro': {'title': 'Static'}}})
Metadata
Release files for static-pages-client 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 |
|---|---|---|---|---|
| static-pages-client-1.0.0.tar.gz | 4.5 kB | Without provenance | Details for static-pages-client-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| static_pages_client-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for static_pages_client-1.0.0-py3-none-any.whl |
Total release size: 9.6 kB
Release files / static-pages-client-1.0.0.tar.gz
| Download URL | static-pages-client-1.0.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00068f87839e28e3dffeb5053e71edc1c10f1f1dc04a8c47ce72e7ecfddf6e29
|
|
BLAKE2b-256 checksum How to use checksums |
4922ef1d263e26d465d1b389ed09a56f6104f809c2869971f6d3d16b7de1ec8a
|
| 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.8.10
|
Release files / static_pages_client-1.0.0-py3-none-any.whl
| Download URL | static_pages_client-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7fdd303d547a930f60da00cb6387becdacf65a161c2556928b94ce242504104
|
|
BLAKE2b-256 checksum How to use checksums |
35034a562b4df77fbf657432b9921a5fac2e5fb4a55411f5555d18010f3b91d3
|
| 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.8.10
|
Security for static-pages-client 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.