Skip to content

Dataset · vikp

Cleaned code and documentation of PyPI packages

vikp/pypi_clean

A large corpus of 1-10 million cleaned Python files, notebooks, and documentation from the latest PyPI package versions.

What's inside

The dataset gathers between 1 and 10 million text files extracted from the latest versions of all PyPI repository packages. The author kept only py, ipynb, md, and rst format files after pre-rendering Jupyter notebooks and removing initial license comments.

What you can do with it

  • Pre-training and fine-tuning language models for Python code generation
  • Creating RAG systems and assistants for the Python ecosystem libraries
Size
1M–10M rows
Downloads this month
548
Likes
38

How to load it

from datasets import load_dataset

ds = load_dataset("vikp/pypi_clean")