Skip to main content

codecraftai-restclient-aws

A pure-Python client for the AWS APIs, replacing boto3.

Status

In progress. The EC2 Query-protocol codec is complete and tested; the service clients are not yet written, and the provisioning venue still uses boto3. Nothing depends on this package yet.

Why the codec came first

EC2 does not speak JSON. Responses are XML whose element names differ from the names callers read — <vpcSet><item><vpcId> becomes response["Vpcs"][0]["VpcId"] — and that mapping is the risky part of the whole client.

A collection mapped to the wrong name decodes as an EMPTY LIST. Nothing raises; it simply reads as “no resources found”. Downstream that means a create runs a second time, or a teardown walks past live infrastructure and reports success. So the mapping is verified against realistically-shaped EC2 XML before anything is built on top of it.

The mapping is mostly mechanical: a <xxxSet> element is a list whose children are <item>, and its modelled name is the de-Set-ed, pluralised, UpperCamelCase form. The irregular cases — instancesSet → Instances, securityGroupInfo → SecurityGroups, ipRanges → IpRanges — are named explicitly rather than left to the rule.

Two details worth recording:

  • Lists are detected structurally, by all children being <item>, so a collection this code has never seen still decodes as a list rather than collapsing into a single object.

  • Empty collections need the NAME, since there are no children to inspect. An empty <vpcSet/> decodes to [], not "" — the string iterates to nothing and so passes a loop silently, while breaking the moment a caller indexes, appends or type checks it.

Requests flatten the other way, into the Query protocol’s dotted parameters (Filters.1.Values.1). Those lists are ONE-indexed; EC2 answers a zero-indexed list with a confusing “missing parameter” rather than an index error.

Signing comes from ccai.restclient.base.awssigv4, already tested against AWS’s published example.

Metadata

Release files for codecraftai-restclient-aws 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codecraftai-restclient-aws 1.2.0
File Size Uploaded Provenance
codecraftai_restclient_aws-1.2.0.tar.gz 18.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for codecraftai-restclient-aws 1.2.0
File Interpreter ABI Platform
codecraftai_restclient_aws-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 40.1 kB

Release files / codecraftai_restclient_aws-1.2.0.tar.gz

Download URL codecraftai_restclient_aws-1.2.0.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ceb904d84b2607a28263b0639da667e481c259bf5b8b9c59fac588a3f54fe93a
BLAKE2b-256 checksum
How to use checksums
87d19992d38334f8ffc2118a7b626c7201a5e01accce02f379fee3cc0fd94410
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Release files / codecraftai_restclient_aws-1.2.0-py3-none-any.whl

Download URL codecraftai_restclient_aws-1.2.0-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e05286042b53aa015405e427dcc1b2e2caadb325e393000122d34b7b1760a814
BLAKE2b-256 checksum
How to use checksums
d8aeabc2d2d41886c69143e1e3361ae1b8cb0d1a8fa7634157ff3b48c631d6b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Security for codecraftai-restclient-aws 1.2.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for codecraftai_restclient_aws-1.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page