Scan your whole stack
Are you using pantech?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.9.0
pantech was last scanned on 29 Nov 2026 at version 0.9.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.9.0 LATEST | 29 Nov 2026 | No rules fired |
| 0.8.0 | 29 Nov 2026 | No rules fired |
| 0.7.1 | 28 Nov 2026 | No rules fired |
| 0.7.0 | 28 Nov 2026 | Not shown |
| 0.6.1 | 25 Nov 2026 | Not shown |
Findings for v0.9.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.9.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The official Python library for the Pantech Dynamics public API: instances, VPC networks, firewalls, public IPs, load balancers, volumes, snapshots, object storage, managed databases, managed Kubernetes, SSH keys, webhooks, billing, usage, and moving from another cloud.
Pantech) and asyncio (AsyncPantech) clients with the same methodsclient.request reaches)Idempotency-Keys, safe retries, cursor pagination, operation and order waitinghttpx. Python 3.10+.Full documentation: https://docs.pantechdynamics.com/sdks/python
pip install pantech
Create an API key in the console under Organization › API keys, then:
export PANTECH_API_KEY=PAN_...
import pantech
with pantech.Pantech() as client:
me = client.me.get()
print("Organization", me["organization_id"])
for instance in client.instances.list_all():
print(instance["id"], instance["name"], instance["observed_state"])
order = client.instances.create(
name="web-1",
plan_slug="starter",
image_slug="ubuntu-24-04",
ssh_key_id="sshk_...",
)
client.instances.wait_for_order(order["order_id"]) # raises OrderFailedError if it fails
instance = client.instances.get(order["instance_id"])
print(instance["public_ipv4"])
Most changes return 202 Accepted with an operation. Wait for it:
accepted = client.instances.stop("vm_...")
client.operations.wait(accepted["operation_id"], timeout=300) # raises OperationFailedError on failure
import asyncio
import pantech
async def main() -> None:
async with pantech.AsyncPantech() as client:
async for volume in client.volumes.list_all():
print(volume["name"])
asyncio.run(main())
Families are attributes of the client and nest where the API does:
client.networks.create(name="prod", cidr="10.10.0.0/16")
client.networks.subnets.list("net_...")
client.networks.firewall_rules.create("snet_...", ...)
client.instances.dynamic_ip.set("vm_...", schedule="weekly")
client.public_ips.port_forwarding_rules.list("pip_...")
client.databases.snapshots.create("db_...", name="before-migration")
client.kubernetes.node_pools.scale("k8s_...", "k8spool_...", workers=3)
client.catalog.list_plans(placement="vpc")
client.buckets.objects.upload("bkt_...", key="hello.txt", body=b"hello", content_type="text/plain")
client.billing.receipts.get_pdf("rcpt_...") # bytes
Arguments are keyword-only, except the ids in the path. Optional arguments you leave out are not
sent; passing None sends JSON null. Results are plain dicts typed with the TypedDicts in
pantech.types. client.request("GET", "/me") calls any route directly.
client.instances.dynamic_ip manages a rotating public outbound address on a standard instance:
outbound traffic leaves from a dynamic IP that changes on your schedule (every_12_hours, daily,
weekly, or monthly), while inbound traffic continues to reach the instance's static address.
# Enable Dynamic IP at creation time:
order = client.instances.create(
name="worker-1",
plan_slug="starter",
image_slug="ubuntu-24-04",
ssh_key_id="sshk_...",
security_group_id="sg_...",
address_rotation={"schedule": "weekly", "connections": "keep"},
)
# Or manage Dynamic IP on an existing instance:
client.instances.dynamic_ip.set("vm_...", schedule="daily", connections="move", on_demand=True)
ip = client.instances.dynamic_ip.get("vm_...")
print(ip["state"], ip["current_address"], ip["next_rotation_at"])
# Rotate immediately (requires on_demand=True; sent once and never retried after an error):
client.instances.dynamic_ip.rotate("vm_...")
# Turn off Dynamic IP and end its surcharge:
client.instances.dynamic_ip.disable("vm_...")
client.object_storage and client.buckets manage S3-compatible buckets, access keys, bucket
rules (CORS, lifecycle, tags, object lock), objects, and multipart uploads:
bucket = client.buckets.create(name="app-assets", region="af-abj", versioning=True)
# Create an S3 access key (secret_access_key is returned once; repr/str show <hidden>):
key = client.object_storage.keys.create(name="ci-uploads", buckets=["app-assets"])
save_to_ci_secrets(key["access_key_id"], key["secret_access_key"])
# Upload and download objects directly through the API:
client.buckets.objects.upload(
bucket["id"],
key="reports/daily.csv",
body=b"id,total\n1,42\n",
content_type="text/csv",
)
raw: bytes = client.buckets.objects.download(bucket["id"], key="reports/daily.csv")
# Presigned URLs and object visibility:
signed = client.buckets.objects.presign_download(bucket["id"], key="reports/daily.csv", expires_in_seconds=600)
client.buckets.objects.set_visibility(bucket["id"], key="reports/daily.csv", public=True)
# Multipart upload for large objects:
mp = client.buckets.multipart.start(bucket["id"], key="backups/db.tar.gz", content_type="application/gzip")
part = client.buckets.multipart.upload_part(
bucket["id"], key="backups/db.tar.gz", upload_id=mp["upload_id"], part_number=1, body=chunk
)
client.buckets.multipart.complete(
bucket["id"],
key="backups/db.tar.gz",
upload_id=mp["upload_id"],
parts=[{"part_number": 1, "etag": part["etag"]}],
)
Bucket configuration (get_cors/set_cors, get_lifecycle/set_lifecycle, get_tags/set_tags,
get_object_lock/set_object_lock, encryption, get_stats, empty), browser upload forms
(buckets.objects.create_upload_form), version restore (buckets.objects.restore_version),
multipart listing and batch signing (buckets.multipart.list, sign_parts), cross-organization
shares (buckets.list_shared, buckets.shares), event notifications (buckets.notifications),
custom domains (buckets.domains), and organization status/usage/settings
(client.object_storage.get_status(), get_usage(), update_settings()) are available on both
Pantech and AsyncPantech.
client.migrate connects another cloud read-only, scans what runs there, and plans the move with a
price comparison and a Terraform export. Nothing is created on Pantech until you apply the
Terraform or start a copy. client.migrate.providers.list() names every cloud it can read and how:
AWS, Google Cloud, Azure and Huawei Cloud are federated (Pantech signs short-lived tokens your
cloud trusts, so no keys are shared); DigitalOcean, Hetzner, Linode, Vultr, Contabo and OpenStack
are read by the Pantech Migrate agent, which keeps your read-only token on your machine. Any
connection, federated ones included, can have one agent for the copy steps that read from inside
your network: server copies, database imports and Kubernetes moves.
conn = client.migrate.connections.create(name="Production AWS")
print(conn["setup"]["quick_create_url"]) # create the stack in AWS, then send its RoleArn output
client.migrate.connections.update(conn["id"], role_arn="arn:aws:iam::...:role/...")
client.migrate.connections.wait(conn["id"]) # raises CloudFailedError if the role cannot be assumed
scan = client.migrate.scans.start(conn["id"])
scan = client.migrate.scans.wait(scan["id"])
plan = client.migrate.migrations.create(scan_id=scan["id"], name="Move to Pantech")
print(plan["estimate"]["pantech_monthly_minor"], plan["estimate"]["source_monthly_minor"])
for f in client.migrate.migrations.export_terraform(plan["id"])["files"]:
print(f["name"]) # main.tf, variables.tf
client.migrate.migrations.update_item(plan_id, key=..., excluded=True) leaves an item out, or
changes its plan, size, address range or role, before you export. See
examples/migrate_from_aws.py.
Other clouds connect the same way. For Google Cloud, Azure and Huawei Cloud, run the script in
conn["setup"]["template"] and send what it prints with update; for an agent provider, enroll
the agent where it will run:
gcp = client.migrate.connections.create(provider="gcp", name="Production GCP")
client.migrate.connections.update(
gcp["id"],
gcp={
"project_number": "...",
"pool_id": "...",
"provider_id": "...",
"service_account_email": "...",
"project_ids": ["..."],
},
)
hetzner = client.migrate.connections.create(provider="hetzner", name="Hetzner")
enrollment = client.migrate.connections.enroll_agent(hetzner["id"]) # shown once
print(enrollment["enroll_command"])
client.migrate.connections.wait(hetzner["id"]) # connected once the agent has enrolled
enroll_agent works on every connection and is sent once and never retried, since each call
issues a new code; revoke_agent(connection_id) ends the agent at once, and any server copy upload
it was running. A plan lists the people it found as items of
kind user; client.migrate.migrations.send_invites(plan_id, keys=[...]) invites them with their
roles, and is safe to repeat.
Then move the data across. Each copy is free; what it creates bills as usual.
# Buckets: choose them, deploy the copy role, then import.
client.migrate.copy_access.set(conn["id"], buckets=["assets"]) # returns the copy role template
client.migrate.copy_access.set(conn["id"], role_arn="arn:aws:iam::...:role/...") # CopyRoleArn output
imp = client.migrate.bucket_imports.start(
connection_id=conn["id"], source_bucket="assets", destination_bucket_name="assets"
)
client.migrate.bucket_imports.resync(imp["id"]) # copies only what changed
# Servers: copy the disks, copy what changed, then cut over to a new instance.
copy = client.migrate.server_copies.start(plan["id"], item_key="...", subnet_id="...")
client.migrate.server_copies.sync(copy["id"])
client.migrate.server_copies.cut_over(copy["id"]) # stop the application first
# Databases, through the Migrate agent: the source's credentials stay on it.
dbi = client.migrate.database_imports.start(
plan["id"], item_key="...", destination_database_id="...", source_ref="prod-db", mode="replicate"
)
client.migrate.database_imports.cut_over(dbi["id"]) # stop writes to the source first
# Kubernetes: preview, apply, then cut over.
move = client.migrate.kubernetes_moves.start(plan["id"], item_key="...", cluster_id="...")
client.migrate.kubernetes_moves.preview(move["id"])
client.migrate.kubernetes_moves.apply(move["id"])
client.migrate.kubernetes_moves.cut_over(move["id"], source_writes_stopped=True)
manifests = client.migrate.kubernetes_moves.download_manifests(move["id"]) # YAML text, for GitOps
Each step is asynchronous: follow it with get (bucket_imports.get, server_copies.get,
database_imports.get, kubernetes_moves.get) until its status says it is ready for the next.
Windows servers are copied with the agent only, once Windows is enabled for your organization.
Every method is also on AsyncPantech.
client.certificates issues TLS certificates through a publicly trusted CA and renews them by
itself, or holds certificates you import, for Pantech load balancers and your own servers.
cert = client.certificates.request(names=["example.com", "*.example.com"], exportable=True)
for v in cert["validations"]:
if v["method"] == "cname": # names outside your Pantech DNS zones: add this CNAME once
print(v["cname_name"], "CNAME", v["cname_target"])
cert = client.certificates.wait(cert["id"]) # CertificateFailedError if it cannot be issued
exported = client.certificates.export(cert["id"]) # needs the delete scope; owners are emailed
write_key_file(exported["private_key_pem"]) # repr(exported) and logs show <hidden>
client.certificates.import_(certificate_pem=..., private_key_pem=...) imports one (import is a
Python keyword), reimport replaces it before it expires, verify re-checks CNAMEs now, and
revoke and delete retire it. The SDK never logs request or response bodies, so an imported key
is not logged either. See examples/certificates.py.
An appliance load balancer can end TLS with one: client.load_balancers.create(..., protocol="https", certificate_id=cert["id"], tls_policy="modern", redirect_http=True); renewals
reach it by themselves. VPC native load balancers pass TLS through as tcp, and a certificate in
use cannot be revoked or deleted (CERTIFICATE_IN_USE).
client.iam controls who in your organization may do what. Policies are statements that allow or
deny actions (instances:Stop, dns:*, *:Read) on resources (*, an id, or name:staging-*),
optionally only from some addresses or with MFA; attach them to members or teams. pantech.iam
builds statements and checks the API's limits before the call.
from pantech import iam
team = client.iam.teams.create(name="Platform")
pol = client.iam.policies.create(
name="staging-operators",
statements=[
iam.allow(
["instances:Read", "instances:Start", "instances:Stop"], ["name:staging-*"], source_ip=["102.89.0.0/16"]
),
iam.deny(["*:Delete"]),
],
)
client.iam.policies.attachments.attach(pol["id"], principal_type="team", principal_id=team["id"])
client.iam.teams.members.add(team["id"], "usr_...")
sim = client.iam.simulate(user_id="usr_...", action="instances:Delete", resource="vm_...")
print(sim["allowed"], sim["decision"]) # False explicit_deny
client.iam.policies.update(id, ..., if_match=pol["version"]) refuses a lost update.
client.iam.actions.list() is the action catalogue, client.iam.effective_access(user_id) what
applies to a member, client.iam.settings the organization's member_baseline, and
iam.MANAGED_POLICY_IDS Pantech's ready-made policies. See examples/access_policies.py.
client.functions runs your code on each request to its own URL, on a schedule, or when invoked:
fn = client.functions.create(name="hello", zone_id="af-abj-1", auth="public")
client.functions.deploy(
fn["id"],
runtime="python3.14",
environment=[{"name": "TOKEN", "value": os.environ["TOKEN"], "secret": True}],
source={
"filename": "main.py",
"content": "def handler(event, context):\n return {'status': 200, 'body': 'hello'}\n",
},
)
# Or a zip of a folder, with requirements.txt installed at build:
# client.functions.deploy_zip(fn["id"], {"runtime": "python3.14"}, Path("fn.zip").read_bytes())
# Runtimes: nodejs22, nodejs24, python3.12, python3.13, python3.14, bun1.3, go1.25,
# ruby3.3 and php8.4. A zip's package.json, requirements.txt, go.mod, Gemfile or
# composer.json dependencies are installed at build.
result = client.functions.invoke(fn["id"], {"query": {"name": "Ada"}})
for call in client.functions.invocations.list_all(fn["id"], outcome="error"):
print(call["request_id"], call["status"])
client.functions.schedules.create(fn["id"], expression="0 6 * * *", time_zone="Africa/Lagos")
Once versions.list shows the version ready, fn["url"] answers. See the
guide.
client.registry manages your private registry at registry.pantechdynamics.com: one namespace per
organization, repositories (private by default), their tags, and registry-only tokens for CI and
clusters. Push and pull with docker, logged in with an API key or a registry token.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.