simplyworks-bitween
The Bitween adapter contract for Python: the kinds of adapter Bitween runs and what it passes them.
It is the Python form of SW.Bitween.Adapters/Contract/bitween-adapter-contract.v1.json, as
SimplyWorks.Bitween.Adapters is its .NET one.
| Kind | Implement | Bitween calls |
|---|---|---|
Handler |
handle(file) -> ExchangeFile |
Handle |
Mapper |
map(file) -> ExchangeFile |
Handle |
Validator |
validate(file) -> ValidationResult |
Validate |
Receiver |
list_files(), get_file(id), delete_file(id); optionally initialize(), finalize() |
Initialize, ListFiles, GetFile, DeleteFile, Finalize |
import sw_serverless as sw
from simplyworks_bitween import ExchangeFile, Handler
class Orders(Handler):
def __init__(self):
sw.expect("Url", description="Where orders go")
def handle(self, file: ExchangeFile) -> ExchangeFile:
# A partner's rejection is returned with bad_data=True, not raised.
return ExchangeFile(data=file.data, filename=file.filename)
if __name__ == "__main__":
sw.run(Orders)
ExchangeFile has data, filename, bad_data and content_type, and is sent with the contract's
property names (Data, Filename, BadData, ContentType, Hash). A kind missing a method it
needs fails when the adapter starts.
bitween adapter build vendors this package, with the SDK, into every Python adapter it builds,
taken from this folder through SW.Bitween.Adapters.Tooling, so nothing needs installing from PyPI.
Tests: PYTHONPATH=src:<SW-Serverless>/sdk/python/src python -m unittest discover -s tests.
Metadata
Release files for simplyworks-bitween 10.0.160
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 |
|---|---|---|---|---|
| simplyworks_bitween-10.0.160.tar.gz | 5.5 kB | Without provenance | Details for simplyworks_bitween-10.0.160.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simplyworks_bitween-10.0.160-py3-none-any.whl | Python 3 | none | any | Details for simplyworks_bitween-10.0.160-py3-none-any.whl |
Total release size: 10.3 kB
Release files / simplyworks_bitween-10.0.160.tar.gz
| Download URL | simplyworks_bitween-10.0.160.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80c6d2a1dd30700a926eba8746aa4522f00f0713b0df7676015032784d59ec98
|
|
BLAKE2b-256 checksum How to use checksums |
2d5f1baade09206a676a4fed2f323794af3360c096d0f908d883ce90c319099f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / simplyworks_bitween-10.0.160-py3-none-any.whl
| Download URL | simplyworks_bitween-10.0.160-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
204f494a002edb4b17a0b1c33b4cd2e3b2a4a2c7b216f54feeef0f0010df40c7
|
|
BLAKE2b-256 checksum How to use checksums |
065c20e3ef66f5dbd3252496f2f876baae97f8580deb88dcf88ac3fd6ec49eab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for simplyworks-bitween 10.0.160
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.