Skip to main content

PyPI version License: MIT Downloads LinkedIn

ProjectCodebaseToJsonl

ProjectCodebaseToJsonl is a Python package designed to convert project codebases into JSONL format. This is particularly useful for preparing data for training GPT models, as it allows for the easy transformation of existing project structures and code into a format compatible with machine learning pipelines.

Installation

To install ProjectCodebaseToJsonl, you can use pip:

pip install ProjectCodebaseToJsonl

Usage

As a Python Module

You can use ProjectCodebaseToJsonl as a module in your Python scripts.

Example:

from codebase_to_jsonl import generate_jsonl_for_project

# Generate JSONL for a project
project_data = generate_jsonl_for_project(
    project_path="path_to_your_project",
    project_name="YourProjectName",
    use_gitignore=True,
    validation_ratio=0.4
)

print("Project Data Generated:")
print(project_data)

Customizing Your Generator

You can customize the behavior of ProjectCodebaseToJsonl by adjusting parameters like use_gitignore and validation_ratio to suit the specific needs of your codebase and desired dataset characteristics.

Output Example

Running ProjectCodebaseToJsonl generates JSONL files for both training and validation, structured to facilitate GPT model training. Here's an example of the output structure:

{
    "project_name": "YourProjectName",
    "token_count": 12345,
    "training_file": "YourProjectName_training_20240101_123456.jsonl",
    "validation_file": "YourProjectName_validation_20240101_123456.jsonl"
}

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check issues page.

License

MIT

Metadata

Release files for ProjectCodebaseToJsonl 2025.5.181247

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

Source distribution (sdist)

Source distribution for ProjectCodebaseToJsonl 2025.5.181247
File Size Uploaded Provenance Actions
projectcodebasetojsonl-2025.5.181247.tar.gz 5.3 kB Without provenance Details for projectcodebasetojsonl-2025.5.181247.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ProjectCodebaseToJsonl 2025.5.181247
File Interpreter ABI Platform Actions
projectcodebasetojsonl-2025.5.181247-py3-none-any.whl Python 3 none any Details for projectcodebasetojsonl-2025.5.181247-py3-none-any.whl

Total release size: 11.1 kB

Release files / projectcodebasetojsonl-2025.5.181247.tar.gz

Download URL projectcodebasetojsonl-2025.5.181247.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bc591f2f61ee40c85203705a1cae39a06b7fe82aa1d905b26e1a27b0faedd4c6
BLAKE2b-256 checksum
How to use checksums
9a770e1ac69ae1961d38a304b908b3514e0115dcbef3b63569988d55248bf615
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Release files / projectcodebasetojsonl-2025.5.181247-py3-none-any.whl

Download URL projectcodebasetojsonl-2025.5.181247-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56ddbe3b12b7561e9f5e317f1ce8f623aa2b8715cdbb74739d0ad40d094c5d1f
BLAKE2b-256 checksum
How to use checksums
011b41424a9c50740ad358c4ca98cd8a72ab31929683a0ece88f95100bb95b87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Security for ProjectCodebaseToJsonl 2025.5.181247

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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