Skip to main content

nitwit

tools for converting git repository data into data tables

Python Interface

# specify repo(s), using path(s) or url(s)
repo = '/path/to/git/repo'
repo = 'https://github.com/author_name/repo_name'
repo = [
    '/path/to/git/repo1',
    '/path/to/git/repo2',
    'https://github.com/author_name1/repo_name2',
    'https://github.com/author_name1/repo_name2',
]

commits = nitwit.commits(repo)
authors = nitwit.authors(repo)
file_diffs = nitwit.file_diffs(repo)

Table Schemas

commits

- hash: String
- author: String
- email: String
- timestamp: DateTime('ms')
- message: String
- parents: String
- committer: String
- committer_email: String
- commit_timestamp: DateTime('ms')
- tree_hash: String
- repo: String

authors

- name: String
- email: String
- n_commits: Int64
- n_changed_files: Int64
- insertions: Int64
- deletions: Int64
- first_commit_timestamp: DateTime('ms')
- last_commit_timestamp: DateTime('ms')
- n_repos: Int64

file_diffs

- hash: String
- insertions: Int64
- deletions: Int64
- path: String
- repo: String

repos

- repo: String
- n_files: Int64
- n_commits: Int64
- n_authors: Int64
- first_commit_timestamp: DateTime('ms')
- last_commit_timestamp: DateTime('ms')

github_user_metadata

- login: String
- id: Int64
- node_id: String
- avatar_url: String
- gravatar_id: String
- url: String
- html_url: String
- followers_url: String
- following_url: String
- gists_url: String
- starred_url: String
- subscriptions_url: String
- organizations_url: String
- repos_url: String
- events_url: String
- received_events_url: String
- type: String
- user_view_type: String
- site_admin: Boolean
- name: String
- company: String
- blog: String
- location: String
- email: String
- hireable: Boolean
- bio: String
- twitter_username: String
- public_repos: Int64
- public_gists: Int64
- followers: Int64
- following: Int64
- created_at: DateTime('ms')
- updated_at: DateTime('ms')

github_repo_metadata

- id: Int64
- node_id: String
- name: String
- full_name: String
- private: Boolean
- owner: Struct
    - login: String
    - id: Int64
    - node_id: String
    - avatar_url: String
    - gravatar_id: String
    - url: String
    - html_url: String
    - followers_url: String
    - following_url: String
    - gists_url: String
    - starred_url: String
    - subscriptions_url: String
    - organizations_url: String
    - repos_url: String
    - events_url: String
    - received_events_url: String
    - type: String
    - user_view_type: String
    - site_admin: Boolean
- html_url: String
- description: String
- fork: Boolean
- url: String
- forks_url: String
- keys_url: String
- collaborators_url: String
- teams_url: String
- hooks_url: String
- issue_events_url: String
- events_url: String
- assignees_url: String
- branches_url: String
- tags_url: String
- blobs_url: String
- git_tags_url: String
- git_refs_url: String
- trees_url: String
- statuses_url: String
- languages_url: String
- stargazers_url: String
- contributors_url: String
- subscribers_url: String
- subscription_url: String
- commits_url: String
- git_commits_url: String
- comments_url: String
- issue_comment_url: String
- contents_url: String
- compare_url: String
- merges_url: String
- archive_url: String
- downloads_url: String
- issues_url: String
- pulls_url: String
- milestones_url: String
- notifications_url: String
- labels_url: String
- releases_url: String
- deyments_url: String
- created_at: String
- updated_at: String
- pushed_at: String
- git_url: String
- ssh_url: String
- clone_url: String
- svn_url: String
- homepage: String
- size: Int64
- stargazers_count: Int64
- watchers_count: Int64
- language: String
- has_issues: Boolean
- has_projects: Boolean
- has_downloads: Boolean
- has_wiki: Boolean
- has_pages: Boolean
- has_discussions: Boolean
- forks_count: Int64
- mirror_url: Null
- archived: Boolean
- disabled: Boolean
- open_issues_count: Int64
- license: Struct
    - key: String
    - name: String
    - spdx_id: String
    - url: String
    - node_id: String
- allow_forking: Boolean
- is_temte: Boolean
- web_commit_signoff_required: Boolean
- topics: List(String)
- visibility: String
- forks: Int64
- open_issues: Int64
- watchers: Int64
- default_branch: String
- permissions: Struct
    - admin: Boolean
    - maintain: Boolean
    - push: Boolean
    - triage: Boolean
    - pull: Boolean
- custom_properties: Struct
    - last_reviewed: String
    - team: List(String)
- organization: Struct
    - login: String
    - id: Int64
    - node_id: String
    - avatar_url: String
    - gravatar_id: String
    - url: String
    - html_url: String
    - followers_url: String
    - following_url: String
    - gists_url: String
    - starred_url: String
    - subscriptions_url: String
    - organizations_url: String
    - repos_url: String
    - events_url: String
    - received_events_url: String
    - type: String
    - user_view_type: String
    - site_admin: Boolean
- network_count: Int64
- subscribers_count: Int64

Metadata

Release files for nitwit 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nitwit 0.1.1
File Size Uploaded Provenance
nitwit-0.1.1.tar.gz 16.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for nitwit 0.1.1
File Interpreter ABI Platform
nitwit-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 35.1 kB

Release files / nitwit-0.1.1.tar.gz

Download URL nitwit-0.1.1.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fdbe040e9155575b8ef18a73e486a26524b0ce35d3933d78b91f238d0f8358e2
BLAKE2b-256 checksum
How to use checksums
be10d1c1c77f4e47214cbfe6288581c1272f7e338eae6b5463bd92c1ab97a92a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release files / nitwit-0.1.1-py3-none-any.whl

Download URL nitwit-0.1.1-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f42b700c232a91860324e61464643e9430a4db519c0a7ce8657e6feb959ea05
BLAKE2b-256 checksum
How to use checksums
6fc6be2eede619d5b7e31edccd23d320cef0cfa2748d07f20bf41a215f447620
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Security for nitwit 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page