Install & Compatibility
Where this runs
tested against v2.2.19 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 34.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.4s · import 0.000s · 35MB
33MB installed
● package 33MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
CensysAsm
✓ from censys.asm import CensysAsm
✗ from censys.asm import CensysAsm
Initialize CensysSearch and CensysAsm with credentials and perform basic queries.
from censys.search import CensysSearch
from censys.asm import CensysAsm
# Initialize with credentials (set via env or directly)
api_id = os.environ.get('CENSYS_API_ID', '')
api_secret = os.environ.get('CENSYS_API_SECRET', '')
c = CensysSearch(api_id=api_id, api_secret=api_secret)
# Search for hosts
results = c.hosts.search("services.service_name: HTTP", per_page=1)
for host in results():
print(host)
# Use ASM
asm = CensysAsm(api_id=api_id, api_secret=api_secret)
seeds = asm.seeds.list()
print(seeds)
censys --version
Upgrade
Version history
2.2.19latest on PyPI · released Dec 11, 2025
Audit
Dependencies
requestsrequiredHTTP client for API calls