├── .dockerignore ├── .gitattributes ├── .github └── workflows │ ├── black.yaml │ ├── docker.yaml │ ├── isort.yaml │ ├── lockfiles.yaml │ ├── mypy.yaml │ └── pytest.yaml ├── .gitignore ├── .python-version ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── PRIVACY.md ├── README.md ├── alembic.ini ├── compose.yaml ├── db ├── README ├── env.py ├── script.py.mako └── versions │ ├── 04eb2d68aa9f_peer_limits.py │ ├── 4cecd778ad0b_save_web_host.py │ ├── 7320133ed7cc_clean_asn_company.py │ └── 8228c0622b52_rebuild_for_pg_support.py ├── docker ├── ingest │ ├── prestart.sh │ └── start.sh └── www │ └── prestart.sh ├── dockerfile.ingest ├── dockerfile.www ├── fedimapper ├── __init__.py ├── _version.py ├── cli.py ├── models │ ├── __init__.py │ ├── asn.py │ ├── ban.py │ ├── base.py │ ├── evil.py │ ├── instance.py │ └── peer.py ├── routers │ ├── __init__.py │ └── api │ │ ├── __init__.py │ │ ├── common │ │ ├── responses │ │ │ └── cached_json.py │ │ └── schemas │ │ │ ├── base.py │ │ │ └── instances.py │ │ ├── instances │ │ ├── routes.py │ │ └── schemas │ │ │ └── models.py │ │ ├── meta │ │ ├── routes.py │ │ └── schemas │ │ │ └── models.py │ │ ├── networks │ │ ├── routes.py │ │ └── schemas │ │ │ └── models.py │ │ ├── reputation │ │ ├── routes.py │ │ └── schemas │ │ │ └── models.py │ │ ├── software │ │ ├── routes.py │ │ └── schemas │ │ │ └── models.py │ │ └── world │ │ ├── routes.py │ │ └── schemas │ │ └── models.py ├── run.py ├── services │ ├── __init__.py │ ├── db.py │ ├── db_session.py │ ├── diaspora.py │ ├── jinja.py │ ├── mastodon.py │ ├── networking.py │ ├── nodeinfo.py │ ├── peertube.py │ ├── stopwords.py │ └── www.py ├── settings.py ├── static │ └── .gitkeep ├── tasks │ ├── __init__.py │ ├── ingest.py │ └── ingesters │ │ ├── __init__.py │ │ ├── diaspora.py │ │ ├── mastodon.py │ │ ├── nodeinfo.py │ │ ├── peertube.py │ │ └── utils.py ├── templates │ └── .gitkeep ├── utils │ ├── banstats.py │ ├── hash.py │ ├── openapi.py │ └── queuerunner.py └── www.py ├── makefile ├── pyproject.toml ├── requirements-dev.txt ├── requirements.txt ├── setup.cfg ├── setup.py └── tests ├── __init__.py ├── services ├── __init__.py ├── test_networking.py └── test_stopwords.py └── test_tasks_ingest_utils.py /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/.dockerignore -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | fedimapper/_version.py export-subst 2 | -------------------------------------------------------------------------------- /.github/workflows/black.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/.github/workflows/black.yaml -------------------------------------------------------------------------------- /.github/workflows/docker.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/.github/workflows/docker.yaml -------------------------------------------------------------------------------- /.github/workflows/isort.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/.github/workflows/isort.yaml -------------------------------------------------------------------------------- /.github/workflows/lockfiles.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/.github/workflows/lockfiles.yaml -------------------------------------------------------------------------------- /.github/workflows/mypy.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/.github/workflows/mypy.yaml -------------------------------------------------------------------------------- /.github/workflows/pytest.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/.github/workflows/pytest.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/.gitignore -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | 3.10.9 2 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/LICENSE -------------------------------------------------------------------------------- /PRIVACY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/PRIVACY.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/README.md -------------------------------------------------------------------------------- /alembic.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/alembic.ini -------------------------------------------------------------------------------- /compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/compose.yaml -------------------------------------------------------------------------------- /db/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /db/env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/db/env.py -------------------------------------------------------------------------------- /db/script.py.mako: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/db/script.py.mako -------------------------------------------------------------------------------- /db/versions/04eb2d68aa9f_peer_limits.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/db/versions/04eb2d68aa9f_peer_limits.py -------------------------------------------------------------------------------- /db/versions/4cecd778ad0b_save_web_host.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/db/versions/4cecd778ad0b_save_web_host.py -------------------------------------------------------------------------------- /db/versions/7320133ed7cc_clean_asn_company.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/db/versions/7320133ed7cc_clean_asn_company.py -------------------------------------------------------------------------------- /db/versions/8228c0622b52_rebuild_for_pg_support.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/db/versions/8228c0622b52_rebuild_for_pg_support.py -------------------------------------------------------------------------------- /docker/ingest/prestart.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/docker/ingest/prestart.sh -------------------------------------------------------------------------------- /docker/ingest/start.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/docker/ingest/start.sh -------------------------------------------------------------------------------- /docker/www/prestart.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "FastAPI Prestart Script Running" 4 | -------------------------------------------------------------------------------- /dockerfile.ingest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/dockerfile.ingest -------------------------------------------------------------------------------- /dockerfile.www: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/dockerfile.www -------------------------------------------------------------------------------- /fedimapper/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/__init__.py -------------------------------------------------------------------------------- /fedimapper/_version.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/_version.py -------------------------------------------------------------------------------- /fedimapper/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/cli.py -------------------------------------------------------------------------------- /fedimapper/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/models/__init__.py -------------------------------------------------------------------------------- /fedimapper/models/asn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/models/asn.py -------------------------------------------------------------------------------- /fedimapper/models/ban.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/models/ban.py -------------------------------------------------------------------------------- /fedimapper/models/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/models/base.py -------------------------------------------------------------------------------- /fedimapper/models/evil.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/models/evil.py -------------------------------------------------------------------------------- /fedimapper/models/instance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/models/instance.py -------------------------------------------------------------------------------- /fedimapper/models/peer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/models/peer.py -------------------------------------------------------------------------------- /fedimapper/routers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fedimapper/routers/api/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fedimapper/routers/api/common/responses/cached_json.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/routers/api/common/responses/cached_json.py -------------------------------------------------------------------------------- /fedimapper/routers/api/common/schemas/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/routers/api/common/schemas/base.py -------------------------------------------------------------------------------- /fedimapper/routers/api/common/schemas/instances.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/routers/api/common/schemas/instances.py -------------------------------------------------------------------------------- /fedimapper/routers/api/instances/routes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/routers/api/instances/routes.py -------------------------------------------------------------------------------- /fedimapper/routers/api/instances/schemas/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/routers/api/instances/schemas/models.py -------------------------------------------------------------------------------- /fedimapper/routers/api/meta/routes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/routers/api/meta/routes.py -------------------------------------------------------------------------------- /fedimapper/routers/api/meta/schemas/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/routers/api/meta/schemas/models.py -------------------------------------------------------------------------------- /fedimapper/routers/api/networks/routes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/routers/api/networks/routes.py -------------------------------------------------------------------------------- /fedimapper/routers/api/networks/schemas/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/routers/api/networks/schemas/models.py -------------------------------------------------------------------------------- /fedimapper/routers/api/reputation/routes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/routers/api/reputation/routes.py -------------------------------------------------------------------------------- /fedimapper/routers/api/reputation/schemas/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/routers/api/reputation/schemas/models.py -------------------------------------------------------------------------------- /fedimapper/routers/api/software/routes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/routers/api/software/routes.py -------------------------------------------------------------------------------- /fedimapper/routers/api/software/schemas/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/routers/api/software/schemas/models.py -------------------------------------------------------------------------------- /fedimapper/routers/api/world/routes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/routers/api/world/routes.py -------------------------------------------------------------------------------- /fedimapper/routers/api/world/schemas/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/routers/api/world/schemas/models.py -------------------------------------------------------------------------------- /fedimapper/run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/run.py -------------------------------------------------------------------------------- /fedimapper/services/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fedimapper/services/db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/services/db.py -------------------------------------------------------------------------------- /fedimapper/services/db_session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/services/db_session.py -------------------------------------------------------------------------------- /fedimapper/services/diaspora.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/services/diaspora.py -------------------------------------------------------------------------------- /fedimapper/services/jinja.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/services/jinja.py -------------------------------------------------------------------------------- /fedimapper/services/mastodon.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/services/mastodon.py -------------------------------------------------------------------------------- /fedimapper/services/networking.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/services/networking.py -------------------------------------------------------------------------------- /fedimapper/services/nodeinfo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/services/nodeinfo.py -------------------------------------------------------------------------------- /fedimapper/services/peertube.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/services/peertube.py -------------------------------------------------------------------------------- /fedimapper/services/stopwords.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/services/stopwords.py -------------------------------------------------------------------------------- /fedimapper/services/www.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/services/www.py -------------------------------------------------------------------------------- /fedimapper/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/settings.py -------------------------------------------------------------------------------- /fedimapper/static/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fedimapper/tasks/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fedimapper/tasks/ingest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/tasks/ingest.py -------------------------------------------------------------------------------- /fedimapper/tasks/ingesters/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fedimapper/tasks/ingesters/diaspora.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/tasks/ingesters/diaspora.py -------------------------------------------------------------------------------- /fedimapper/tasks/ingesters/mastodon.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/tasks/ingesters/mastodon.py -------------------------------------------------------------------------------- /fedimapper/tasks/ingesters/nodeinfo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/tasks/ingesters/nodeinfo.py -------------------------------------------------------------------------------- /fedimapper/tasks/ingesters/peertube.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/tasks/ingesters/peertube.py -------------------------------------------------------------------------------- /fedimapper/tasks/ingesters/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/tasks/ingesters/utils.py -------------------------------------------------------------------------------- /fedimapper/templates/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /fedimapper/utils/banstats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/utils/banstats.py -------------------------------------------------------------------------------- /fedimapper/utils/hash.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/utils/hash.py -------------------------------------------------------------------------------- /fedimapper/utils/openapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/utils/openapi.py -------------------------------------------------------------------------------- /fedimapper/utils/queuerunner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/utils/queuerunner.py -------------------------------------------------------------------------------- /fedimapper/www.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/fedimapper/www.py -------------------------------------------------------------------------------- /makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/makefile -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements-dev.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/requirements-dev.txt -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/requirements.txt -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/setup.cfg -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/setup.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/services/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/services/test_networking.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/tests/services/test_networking.py -------------------------------------------------------------------------------- /tests/services/test_stopwords.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/tests/services/test_stopwords.py -------------------------------------------------------------------------------- /tests/test_tasks_ingest_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tedivm/fedimapper/HEAD/tests/test_tasks_ingest_utils.py --------------------------------------------------------------------------------