chartavisa (Python)
Thin, dependency-free Python client (standard-library urllib only) for the
Charta Visa agent API.
Charta Visa is an independent private service, not a government website. Government fees are stated separately and paid to the authorities in full. Full docs, MCP server and the OpenAPI spec: https://chartavisa.com/developers.
Install
pip install chartavisa
Python 3.8+. No runtime dependencies.
No API key needed
The three helpers below call the public read endpoints: no key, no sign-up, CORS-enabled, 30 requests/minute per IP.
import chartavisa
elig = chartavisa.check_eligibility("IN", "US")
# {'required': True, 'visa_type': 'DS160', 'visa_name': 'US Visitor Visa (B1/B2)',
# 'pricing': {...}, 'links': {'apply_url': ..., 'requirements_url': ...}, ...}
quote = chartavisa.quote_pricing("ESTA", processing_speed="rush", num_travelers=2, currency="eur")
print(quote["charged"]) # {'amount': ..., 'currency': 'EUR', 'fx_rate': ...}
products = chartavisa.list_visa_products()
print([p["id"] for p in products["schemas"]]) # ['ESTA', 'DS160', 'UK_ETA', 'ETIAS', 'CANADA_ETA']
With an API key / other endpoints
from chartavisa import ChartaVisa, ChartaVisaError
cv = ChartaVisa(api_key="cv_agent_…", user_agent_suffix="my-app/1.0")
try:
me = cv.request("GET", "/api/v1/agent/me")
status = cv.request("GET", "/api/v1/agent/status/<application_id>")
except ChartaVisaError as e:
print(e.code, e.status, e.message, e.hint)
request(method, path, body=None) works for every endpoint in the
OpenAPI spec; it unwraps
the { "success": true, "data": … } envelope and raises ChartaVisaError
(with .code, .status, .hint, .details) on any error.
Errors
code |
Meaning |
|---|---|
INVALID_FIELD / INVALID_VISA_TYPE |
Bad input (ISO-2 codes, unknown product) |
RATE_LIMITED |
Back off (Retry-After seconds in the response) |
UNAUTHORIZED / AUTH_REQUIRED |
Endpoint needs an API key |
NETWORK_ERROR |
Could not reach the server (status == 0) |
License
MIT.
Release files for chartavisa 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 | |
|---|---|---|---|
| chartavisa-1.0.0.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chartavisa-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.5 kB
Release files / chartavisa-1.0.0.tar.gz
| Download URL | chartavisa-1.0.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
044eb8012afa75b02f26908020684f68d8ec1ad2fa0ae4a2bf9fda825077d285
|
|
BLAKE2b-256 checksum How to use checksums |
b3695006a2af45124fa3ad5ec30c36bf265795aa23b55277f7464beb2af79b33
|
| 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 Sep 20, 2026.
Transparency logRelease files / chartavisa-1.0.0-py3-none-any.whl
| Download URL | chartavisa-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8f8170f447a52bb6b2e0b82334c9703ec42212aa266d6cf5bdb56858d37ea8e
|
|
BLAKE2b-256 checksum How to use checksums |
6046770b5a88fe0749b5ae1320faa2af7f71d26d3db4f38e5715ca6e3892ad2b
|
| 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 Sep 20, 2026.
Transparency log