Skip to main content

PuReX - Pull Request eXtractor

Project description

PuReX logo with some description about it.

DOI

Installation

Using pip:

pip install purex

Using uv (recommended):

uv add purex

To install the documentation, you can install purex[doc] instead of purex.

Tutorials

First thing to do after the installation, is to set the environment variable token. This token is your GitHub token that will be used for sending the requests to GitHub REST API. Although including the token is not necessary, but it can be helpful for a faster extraction, specially for bigger projects.

In UNIX-like (GNU/Linux, Mac OS) operating systems:

export PUREX_TOKEN="YOUR TOKEN"

In Windows operating system:

set PUREX_TOKEN="YOUR_TOKEN"

For getting help about the PuReX, you can run it without any extra command or just pass the help option:

purex --help

Usage: purex [OPTIONS] COMMAND [ARGS]...

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  get  Get pull-request data of a repository.

Getting Data from a Repository

purex get --help

Usage: purex get [OPTIONS] OWNER REPOSITORY

  GET pull-request data for REPOSITY from OWNER.

  OWNER is the account name that hosts the repository (e.g., torvalds).

  REPOSITORY is the name of the repository (e.g., linux).

Options:
  -t, --token TEXT         GitHub Token
  -u, --base_url TEXT      REST API url of GitHub.
  --start_date [%m-%d-%Y]  Inclusive starting date (MM-DD-YYYY) for pulling
                           the pull-request data.
  --help                   Show this message and exit.

For more info and tutorials, please refer to the documentation.

About

Publications

If you use PuReX in your research, please cite it as follows:

@software{PuReX,
  author = {Mokhtari Koushyar, Javad},
  doi = {10.5281/zenodo.15825844},
  month = {2},
  title = {{PuReX, Pull-Request Extractor}},
  url = {https://github.com/j0m0k0/PuReX},
  year = {2025}
}

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

purex-0.1.1.tar.gz (734.9 kB view details)

Uploaded Source

Built Distribution

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

purex-0.1.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file purex-0.1.1.tar.gz.

File metadata

  • Download URL: purex-0.1.1.tar.gz
  • Upload date:
  • Size: 734.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.4

File hashes

Hashes for purex-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ed6e78440ae0aa88b7cb5b6b0cb513a1c1c680f94285cc657df59157a004fe5f
MD5 dcc22cdbdaa41c7d94deef889f4a73d8
BLAKE2b-256 18b98728f88fda9b3b54c4a5fa0043ffa4eb878d345e787b9fd41b94c1ca21a5

See more details on using hashes here.

File details

Details for the file purex-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: purex-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.4

File hashes

Hashes for purex-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 575bc0ca0b319d3d69ce47941637a2544f1ea7369645266775a01c71b72f109e
MD5 61c3e0ee358cd1cf4c6b7b77782533cd
BLAKE2b-256 ad418308155d2babef24cc320a4ec1ac83c3eb25446e8bbe4dcf3ac1917870a9

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