Skip to main content

A simple CLI for anonymizing Python codebases for blind review.

Project description

unname

A simple CLI for anonymizing Python codebases for blind review.

It anonymizes pyproject.toml and README.md in your project (see below for details). If your project is a uv workspace, it anonymizes all workspace members.

Prerequisit

Your project must be a git repository since unname internally uses git ls-files to filter out .gitignored files.

Usage

Using uv:

uvx unname -o <OUTPUT_DIRECTORY>

This will create a anonymized copy of your project in <OUTPUT_DIRECTORY>.

You can also run grep -r "Your Name" <OUTPUT_DIRECTORY> to verify your name is not accidentaly left in the git repository.

What it does

1. Make a copy of your project

First of all, unname will create a copy of your project in the directory specified by the -o or --output option.

unname only copies git-tracked files so that you don't have to manually filter out irrelevant files such as .venv from your code submission.

2. pyproject.toml anonymization

authors and maintainers fields will be replaced with an empty list (if they exist).

3. README.md anonymization

The content between <!-- begin-unname --> and <!-- end-unname --> will be removed. For example:

Input

# My Awesome Project

Code for the paper "My Awesome Method."

<!-- begin-unname -->
- Authors: Alice & Bob
- arXiv link: https://arxiv.org/abs/1234.56789
<!-- end-unname -->

## Install

...

Output

# My Awesome Project

Code for the paper "My Awesome Method."

## Install

...

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

unname-0.2.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

unname-0.2.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file unname-0.2.1.tar.gz.

File metadata

  • Download URL: unname-0.2.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for unname-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e7b66a04128493ba1d7a4bb256fb18e6b822de76fd8ac5545185669e8f309a36
MD5 ba0488273bf62db2984eae480ed470eb
BLAKE2b-256 6c09fa350f09e5ae94675d5c3e72b32bd8a693e3fe7799ba480c72ede4598215

See more details on using hashes here.

File details

Details for the file unname-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: unname-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for unname-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42ecbc2f8ac9351c7ce37f26119ba319c9040d8760a2146942a56f726848dc7c
MD5 028165b51b4afa903a9f98c4c7b40268
BLAKE2b-256 83c03fa6d1f4da1f651421a35c0c2ba74a655a456702d0206fabf59a2ca97a36

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