Skip to main content

Check if a software URL is found in takedown notices.

Reason this release was yanked:

was missing the DMCA database

Project description

DMCAed

A command-line tool to analyze GitHub DMCA takedown notices. It downloads, parses, and indexes takedown data from the GitHub DMCA repository to allow querying which repository URL can be found in takedown requests, please note that this only means the repository URL might have been subject to takedown requests.

Installation

DMCAed requires at least python 3.11.

pip install dmcaed

CLI

dmcaed [--verbose] [command]

Commands

  • download: Download the latest DMCA notices from GitHub
  • analyze: Parse downloaded notices and extract takedown data
  • db: Rebuild the complete DMCA database (download + analyze)
  • stats: Show statistics about the database content
  • notices <url>: List takedown notices for a specific repository URL

Options

  • --verbose: Enable debug logging
  • -h, --help: Show help message

Library Usage

from dmcaed import DMCAed

dmca = DMCAed()
notices = dmca.notices("https://github.com/user/repo")

if notices:
    print(f"https://github.com/user/repo _might_ be subject to a takedown: {notices}")

How it works

  • Download the latest DMCA notices from GitHub
  • Extract repository URLs (path to files, issues, releases, etc. are truncated) mentioned in takedown notices
  • Build a local SQLite database mapping repository URLs to takedown notices

Build and Release

### Prerequisites

The project uses hatch build system and dynamic CalVer versioning based on the current date.

pip install hatch hatch-calver

Git clone and install DMCAed.

git clone ssh://git@codeberg.org/canarduck/dmcaed.git
pip install -e .

Update the package and publish it on PyPI

You first need to fetch DMCAs and create/update the database.

dmcaed db

Then use hatch to update version number and build the package.

hatch version release
# use `hatch version release,fix` in case you need to fix an already released package

Build the package and publish it on PyPI.

hatch build
hatch publish  --auth PYPI_AUTH_TOKEN

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dmcaed-2026.4.18.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dmcaed-2026.4.18-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file dmcaed-2026.4.18.tar.gz.

File metadata

  • Download URL: dmcaed-2026.4.18.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.11.11 HTTPX/0.28.1

File hashes

Hashes for dmcaed-2026.4.18.tar.gz
Algorithm Hash digest
SHA256 d973ae3018c941555b04ecfb0ee5fe1b0e1d8f32b038bc09d67bdfda2566a5bb
MD5 caaf0495b919e35fa52dea66a40d4233
BLAKE2b-256 33172e74dd0ff439d5baa6e7e59f5b227627c44ba6c285e477c67e77ae789684

See more details on using hashes here.

File details

Details for the file dmcaed-2026.4.18-py3-none-any.whl.

File metadata

  • Download URL: dmcaed-2026.4.18-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.5 cpython/3.11.11 HTTPX/0.28.1

File hashes

Hashes for dmcaed-2026.4.18-py3-none-any.whl
Algorithm Hash digest
SHA256 4e357e9d6bb3c4fb6837f38ae91a03fa2b086f90dbf4a3a43a7e5947071fd78e
MD5 f460924041ca7edacd75a93f2ad1a8c8
BLAKE2b-256 0b3f7ca1fcb19f5409df14227be398057649cc7666198095a72cd02a88d82264

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page