Skip to main content

Shodan Chrono: Python

Quickstart

Install the library using:

pip install shodan-chrono

And then use it in your code:

import chrono

items = [i for i in range(100)]
with chrono.progress("My Script", len(items), api_key="YOUR SHODAN API KEY") as pb:
    for item in items:
        # Do something
        # Update the progress bar after we've processed the item
        pb.update()

You can also tell the progress bar to update by more than 1 tick:

    pb.update(5)  # Tell Chrono that we've processed 5 items

Configuring the API key

The Chrono API requires a Shodan API key and there are 3 possible ways you can provide that:

  • Initialize the Shodan CLI on your local machine: shodan init YOUR_API_KEY
  • Set the SHODAN_API_KEY environment variable. For example: export SHODAN_API_KEY="YOUR KEY"
  • Use the api_key parameter on the chrono.progress() class

If you're already using the Shodan CLI for other things then you won't need to configure anything in order to use Chrono.

Contributing

Checkout the repository and then use poetry to manage the dependencies, virtual environment and packaging. To get started, simply run the following command once you're in the python/ subdirectory of this repository:

poetry install

Metadata

Release files for shodan-chrono 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shodan-chrono 0.1.0
File Size Uploaded Provenance
shodan-chrono-0.1.0.tar.gz 3.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for shodan-chrono 0.1.0
File Interpreter ABI Platform
shodan_chrono-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.0 kB

Release files / shodan-chrono-0.1.0.tar.gz

Download URL shodan-chrono-0.1.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f2a18f2b8cb0f55e63e79e87463644e9eb40da5dcf76e92f6d7ce6365e60034c
BLAKE2b-256 checksum
How to use checksums
012bb87a286e44d025900fdfc90c2b2a0c08f7c59c17c581514842c011e899b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.9.2 Linux/4.18.0-25-generic

Release files / shodan_chrono-0.1.0-py3-none-any.whl

Download URL shodan_chrono-0.1.0-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f26d61daaf2a8c142444d2ddc703d5512b9d6aa05c8c223d612d402fc424abc8
BLAKE2b-256 checksum
How to use checksums
822f8269f5f7b630c916151c0445e7a1cf19480c57da1fa0480146d9708c69ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.9.2 Linux/4.18.0-25-generic

Security for shodan-chrono 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page