fc-nmap
THis software is still in alpha and under heavy development. Things will change and break.
Quickstart
pip install fc-nmap
fc-nmap --help
Usage: fc-nmap [OPTIONS] COMMAND [ARGS]...
Farcaster Network Mapper
Options:
--version Show the version and exit.
-h, --help Show this message and exit.
Commands:
exportdb Create a tab separated dump of the database
initdb Initialize the database
scan Scan will scan the network
updatedb Collect addtional information about each hub
map Create a mpa of the hubs in db
Behind the scenes
fc-nmap initdb creates a local sqlite database where data is stored.
fc-nmap scan will start by asking a hub to provide its contact list (gRPC call GetCurrentPeers). Using this list, it will pick --hops
hubs at random, and request their contact list too. The lists are combined and stored in the database.
fc-nmap updatedb --hub-info looks into the database and picks hubs that were recently active.
(Recency is defined by comparing ContactInfoContentBody.timestamp collected when requesting the contacts lists and the current timestamp.)
The command will try to connect to each one of the hubs, and collect additional info using GetInfo, and store the results in the local
database.
fc-nmap updatedb --hub-location works similar to --hub-info, but uses ip2location.io to get location information about each hub IP.
Again, information collected is stored in the local database. The script will not query ip2location for IPs that were looked up in the last
100 days. This helps staying within ip2location free plan limits.
fc-nmap export --report=all will export all "active" hubs. Use fc-nmap export --help` to get all the available exports/reports.
Or connect directly to the local database (currently named hubs.db and stored in the directory where you called the previous commands)
and run your own queries.
License
fc-nmap is distributed under the terms of the MIT license.
Metadata
Release files for fc-nmap 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fc_nmap-0.0.10.tar.gz | 4.4 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fc_nmap-0.0.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.5 MB
Release files / fc_nmap-0.0.10.tar.gz
| Download URL | fc_nmap-0.0.10.tar.gz |
|---|---|
| Size | 4.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf8b5a3a5f907f817460d17e705282ed74bf4cf0eba13fa7ad78c87bb93cca3e
|
|
BLAKE2b-256 checksum How to use checksums |
82987ae55f0d0db4b7903416df7f84820884a7e614909fb0d8879697a3998b66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.2
|
Release files / fc_nmap-0.0.10-py3-none-any.whl
| Download URL | fc_nmap-0.0.10-py3-none-any.whl |
|---|---|
| Size | 47.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a55b0bf7f8e09cf61f2be18d24a607220ba4dfda184056909c20d7fd51736ab1
|
|
BLAKE2b-256 checksum How to use checksums |
b11a5e861f15ff67fcce545bc471337c77415e9455e42e988fe6f61be3996d35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.27.2
|
Security for fc-nmap 0.0.10
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.