Skip to main content
= data-chunker

Python library that chunks code into a Python list consisting of Python dictionaries. This list of dictionaries can then be used for vector-store creation, which can provide granular context for OpenAI queries.

Current list of languages that can be chunked:

* Java (packages, methods, and variables)

== Modules
=== parser.py
* Contains functions to read code lines from given files and file paths
* get_file_list(code_path, file_extension) - returns a list of files from the path passed in
* get_code_lines(file) - returns the code from the file name passed in

=== java_code.py
* Contains functions to split java files into smaller chunks

== Contributing

The GitHub repository for this package is https://github.com/break-free/data-chunker.

The `main` branch is protected therefore any contributions require a branch to be created. Branch names should be preprended with either `feat/` or `fix/` to indicate whether new functionality or a refactor/fix is being made (e.g, `fix/update-readme`). Once the branch is complete, it can be merged back into `main`.

The repository includes additional directories, such as `setup`, `info`, and `training`, and files such as `main.py`, that includes additional resources for development and usage examples.

== Packaging

This Python package was produced using https://hatch.pypa.io/latest/config/build/[hatchling]. Refer to the `pyproject.toml` for specifics.

Recommend reading the following sites to get familiar with Python packages and uploading to https://pypi.org.

* https://packaging.python.org/en/latest/tutorials/packaging-projects/[Packaging Python Projects].
* https://hatch.pypa.io/latest/config/build/[Hatchling - Build Configuration].
* https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#uploading-your-project-to-pypi[Uploading your Project to PyPI].
* https://pypi.org/project/keyring/[keyring] (useful for keeping PyPI login safe).

== Notes

This code has been battle-tested with *one* application. If you encounter any issues then please https://github.com/break-free/java-code-chunker/issues[submit an issue ticket here on GitHub].

Metadata

Release files for data-chunker 0.0.4

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

Source distribution (sdist)

Source distribution for data-chunker 0.0.4
File Size Uploaded
data_chunker-0.0.4.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for data-chunker 0.0.4
File Interpreter ABI Platform
data_chunker-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 kB

Release files / data_chunker-0.0.4.tar.gz

Download URL data_chunker-0.0.4.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
30e7760a6215c7aa42c2e45ab906c43d9bb4c286bcec99fd74e98950ac2fa463
BLAKE2b-256 checksum
How to use checksums
79afc08428545d618bf17e3c8b54d4f2a142b60ac8eec749cc0fa4378da1c8dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / data_chunker-0.0.4-py3-none-any.whl

Download URL data_chunker-0.0.4-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c76c8edc67e0716467c99b1bed775ce24a9272de97c463a44fbb40f0c3e801e5
BLAKE2b-256 checksum
How to use checksums
3e45cb8c9435ca979045516dfd612a51e2ed0a911421a3b858e84922af1045f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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