GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - censys/censys-python: An easy-to-use and lightweight API wrapper for Censys APIs.

BranchesTags
Open more actions menu

Latest commit

 

History

1,157 Commits
1,157 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
censys
censys
 
 
docs
docs
 
 
examples
examples
 
 
scripts
scripts
 
 
tests
tests
 
 
.coveragerc
.coveragerc
 
 
.gitignore
.gitignore
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
.readthedocs.yml
.readthedocs.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
conftest.py
conftest.py
 
 
pyproject.toml
pyproject.toml
 
 
uv.lock
uv.lock
 
 

Repository files navigation

Censys Python Library

PyPI Python Version Read the Docs (version) GitHub Discussions PRs Welcome License

Warning

DEPRECATION NOTICE: The Censys Search v1 and v2 APIs will be deprecated soon. Please migrate to the new Censys Platform.

  • 📖 New API Documentation: https://docs.censys.com/reference/get-started
  • 📦 New Python SDK: censys/censys-sdk-python
  • 🖥️ New CLI Tool (cencli): censys/cencli
    • ⚠️ If you plan to use the new CLI, you will need to uninstall this package's CLI first as both use the censys command name

The Censys ASM APIs in this library are NOT deprecated and will continue to be supported.

An easy-to-use and lightweight API wrapper for Censys APIs (censys.io). Python 3.9+ is currently supported. This library has been tested on Python 3.9 and 3.x (Currently version 3.13).

Features

  • Search Censys data
  • Bulk Certificate lookups
  • Download Bulk Data
  • Manage assets, events, and seeds in Censys ASM
  • Command-line interface

Getting Started

The library can be installed using pip.

pip install censys

To upgraded using pip.

pip install --upgrade censys

Alternatively, you can install the library using uv.

git clone https://github.com/censys/censys-python.git
cd censys-python/
uv install

Optionally, you can enable tab completion for the CLI by adding this line to your ~/.bashrc, ~/.zshrc, or equivalent.

Please note that autocomplete is supported for field names in the search command.

eval "$(register-python-argcomplete censys)"

To 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
Do you want color output? [y/n]: y

Successfully authenticated for [email protected]

If you have a Censys ASM account, you can configure your ASM credentials by running censys asm config or set both CENSYS_ASM_API_KEY environment variables.

$ censys asm config

Censys ASM API Key: XXX
Do you want color output? [y/n]: y

Successfully authenticated

Examples

The examples located in the examples/ directory are a great place to start. You can also find more examples in the usage documentation.

Documentation

Read the Docs

Resources

  • Source
  • Issue Tracker
  • Changelog
  • Documentation
  • Discussions
  • Censys Homepage
  • Censys Search

Contributing

All contributions (no matter how small) are always welcome. See Contributing to Censys Python

Development

This project uses uv for dependency management. Please ensure you have installed the latest version.

git clone [email protected]:censys/censys-python.git
cd censys-python/
uv install

Testing

# Run tests
uv run pytest
# With coverage report
uv run pytest --cov-report html

License

This software is licensed under Apache License, Version 2.0

  • Copyright (C) 2026 Censys, Inc.

About

An easy-to-use and lightweight API wrapper for Censys APIs.

censys-python.rtfd.io/

Topics

apiattack-surface-managementcensyshacktoberfestpypipythonpython3search

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

469 stars

Watchers

16 watching

Forks

99 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.