censys-2.2.0
توضیحات
An easy-to-use and lightweight API wrapper for Censys APIs (censys.io).
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | censys-2.2.0 |
| نام | censys |
| نسخه کتابخانه | 2.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Censys, Inc. |
| ایمیل نویسنده | support@censys.io |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/censys/ |
| مجوز | Apache-2.0 |
# Censys Python Library
[](https://pypi.org/project/censys/)
[](https://www.python.org/downloads/)
[](https://censys-python.readthedocs.io/en/stable/?badge=stable)
[](https://github.com/censys/censys-python/discussions)
[](http://makeapullrequest.com)
[](https://github.com/censys/censys-python/blob/main/LICENSE)
An easy-to-use and lightweight API wrapper for Censys APIs ([censys.io](https://censys.io/)). Python 3.7.2+ is currently supported.
> **Notice:** The Censys Search v1 endpoints are deprecated as of Nov. 30, 2021. Please begin using v2 endpoints to query hosts and certificates and check out our [support center](https://support.censys.io/hc/en-us/sections/360013076551-Censys-Search-2-0) for resources.
## Features
- [Search Censys data](https://censys-python.readthedocs.io/en/stable/usage-v2.html)
- [Bulk Certificate lookups](https://censys-python.readthedocs.io/en/stable/usage-v1.html#bulk)
- [Download Bulk Data](https://censys-python.readthedocs.io/en/stable/usage-v1.html#data)
- [Manage assets, events, and seeds in Censys ASM](https://censys-python.readthedocs.io/en/stable/usage-asm.html)
- [Command-line interface](https://censys-python.readthedocs.io/en/stable/cli.html)
<a href="https://asciinema.org/a/500416" target="_blank"><img src="https://asciinema.org/a/500416.svg" width="600"/></a>
## Getting Started
The library can be installed using `pip`.
```sh
pip install censys
```
To upgraded using `pip`.
```sh
pip install --upgrade censys
```
To configure your search credentials run `censys config` or set both `CENSYS_API_ID` and `CENSYS_API_SECRET` environment variables.
```sh
$ censys config
Censys API ID: XXX
Censys API Secret: XXX
Do you want color output? [y/n]: y
Successfully authenticated for your@email.com
```
To configure your ASM credentials run `censys asm config` or set the `CENSYS_ASM_API_KEY` environment variables.
```sh
$ censys asm config
Censys ASM API Key: XXX
Do you want color output? [y/n]: y
Successfully authenticated
```
## API Reference and User Guide available on [Read the Docs](https://censys-python.readthedocs.io/)
[](https://censys-python.readthedocs.io/)
## Resources
- [Source](https://github.com/censys/censys-python)
- [Issue Tracker](https://github.com/censys/censys-python/issues)
- [Changelog](https://github.com/censys/censys-python/releases)
- [Documentation](https://censys-python.rtfd.io)
- [Discussions](https://github.com/censys/censys-python/discussions)
- [Censys Homepage](https://censys.io/)
- [Censys Search](https://search.censys.io/)
## Contributing
All contributions (no matter how small) are always welcome. See [Contributing to Censys Python](.github/CONTRIBUTING.md)
## Development
This project uses [poetry](https://python-poetry.org/) for dependency management. Please ensure you have [installed the latest version](https://python-poetry.org/docs/#installation).
```sh
git clone git@github.com:censys/censys-python.git
cd censys-python/
poetry install
```
## Testing
```sh
# Run tests
poetry run pytest
# With coverage report
poetry run pytest --cov-report html
```
## License
This software is licensed under [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
- Copyright (C) 2022 Censys, Inc.
نیازمندی
| مقدار | نام |
|---|---|
| >=2.29.0 | requests |
| >=2.0.1,<3.0.0 | backoff |
| >=10.16.2 | rich |
| - | importlib-metadata |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7.2,<4.0.0 | Python |
نحوه نصب
نصب پکیج whl censys-2.2.0:
pip install censys-2.2.0.whl
نصب پکیج tar.gz censys-2.2.0:
pip install censys-2.2.0.tar.gz