An easy-to-use and lightweight API wrapper for Censys APIs (censys.io). Python 3.6+ is currently supported.
Notice: The Censys Search v1 endpoints are going away on Nov. 30, 2021. Please begin using v2 endpoints to query hosts and certificates and check out our support center for resources.
- Search Censys data
- Bulk Certificate lookups
- Download Bulk Data
- Manage assets, events, and seeds in Censys ASM
- Command-line interface
The library can be installed using pip.
pip install censysTo upgraded using pip.
pip install --upgrade censysTo configure your search credentials run censys config or set both CENSYS_API_ID and CENSYS_API_SECRET environment variables.
$ censys config
Censys API ID: XXX
Censys API Secret: XXX
Successfully authenticated for your@email.comTo configure your ASM credentials run censys asm config or set the CENSYS_ASM_API_KEY environment variables.
$ censys asm config
Censys ASM API Key: XXX
Successfully authenticatedAPI Reference and User Guide available on Read the Docs
All contributions (no matter how small) are always welcome.
This project uses poetry for dependency management. Please ensure you have installed the latest version.
git clone git@github.com:censys/censys-python.git
cd censys-python/
poetry installpytest
# With coverage report
pytest --cov-report htmlThis software is licensed under Apache License, Version 2.0
- Copyright (C) 2021 Censys, Inc.
