ci-cd-APIer -- Flask-like API framework for GitLab CI/CD pipelines
Project description
ci-cd-APIer
APIer is a library that allows you to launch its backend code with Flask-like syntax using GitLab CI/CD. All the requests and responses are processed with e2e encryption using age, so nobody has access to the data except the sender (web page) and the receiver (GitLab job in memory).
Usage example
To see the full example, take a look at the example repository.
Whenever the client calls a backend via APIer script, e.g.:
const APIer = new APIer(
'$AGE_PUBLIC_KEY$',
'$GITLAB_PIPELINE_ENDPOINT$',
'$GITLAB_TOKEN$'
);
const totalSum = await APIer.sendRequest('sumNumbers', [1, 2, 3, 4, 5]);
A pipeline is triggered. Example code that handles the request in the pipeline may be:
app = APIER(environ["AGE_SECRET_KEY"])
@app.route("echo")
def endpoint_echo(data: any) -> str:
return f"You said: {data}. Enjoy :)"
@app.route("sumNumbers")
def endpoint_sum(data: list[int]) -> str:
return str(sum(data))
app.process_requests()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ci_cd_apier-0.9.91.tar.gz.
File metadata
- Download URL: ci_cd_apier-0.9.91.tar.gz
- Upload date:
- Size: 745.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ecaf23fa2733b2a673d604101d2e161e291d41f328fc9768a5e4a7464f2b778
|
|
| MD5 |
6879ff89ab149b42885fa80f050fc17e
|
|
| BLAKE2b-256 |
b39d15f3e40ff845bd342154db62727e0b57fc3c9b97ad99bf4015b6c1c597ac
|
Provenance
The following attestation bundles were made for ci_cd_apier-0.9.91.tar.gz:
Publisher:
pypi-deploy.yml on esoadamo/ci-cd-apier
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ci_cd_apier-0.9.91.tar.gz -
Subject digest:
3ecaf23fa2733b2a673d604101d2e161e291d41f328fc9768a5e4a7464f2b778 - Sigstore transparency entry: 169021271
- Sigstore integration time:
-
Permalink:
esoadamo/ci-cd-apier@1b80a308b3c9e9715a40f6be0ff2104d60702c11 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/esoadamo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-deploy.yml@1b80a308b3c9e9715a40f6be0ff2104d60702c11 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ci_cd_apier-0.9.91-py3-none-any.whl.
File metadata
- Download URL: ci_cd_apier-0.9.91-py3-none-any.whl
- Upload date:
- Size: 753.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37629a5086a627dcefb64d9d5c2703f1540203d4b62f73dfc5f888dfc7f5547c
|
|
| MD5 |
ca76782f081723962db745a6d56689a9
|
|
| BLAKE2b-256 |
6c0aa112baf25bbdeb7089ac965b6dc16f29f48d52b419a1cad0e99261685967
|
Provenance
The following attestation bundles were made for ci_cd_apier-0.9.91-py3-none-any.whl:
Publisher:
pypi-deploy.yml on esoadamo/ci-cd-apier
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ci_cd_apier-0.9.91-py3-none-any.whl -
Subject digest:
37629a5086a627dcefb64d9d5c2703f1540203d4b62f73dfc5f888dfc7f5547c - Sigstore transparency entry: 169021272
- Sigstore integration time:
-
Permalink:
esoadamo/ci-cd-apier@1b80a308b3c9e9715a40f6be0ff2104d60702c11 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/esoadamo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-deploy.yml@1b80a308b3c9e9715a40f6be0ff2104d60702c11 -
Trigger Event:
push
-
Statement type: