data-source-git
Extracts content from Git repositories along with associated file metadata.
Usage
pip install vdk-data-source-git
Extracted Data Schema
The extracted data is returned in a DataSourcePayload object with two main components: content and metadata.
content
The content field contains the actual content of the file as a string.
metadata
The metadata field contains a dictionary with the following schema:
| Key | Description | Data Type | Example |
|---|---|---|---|
size |
The size of the file in bytes | Integer | 12345 |
path |
The path of the file in the repository | String | "src/main.py" |
num_lines |
The number of lines in the file | Integer | 678 |
file_extension |
The file extension | String | ".py" |
programming_language |
The detected programming language of the file | String | "Python" |
is_likely_test_file |
Flag indicating if the file is likely a test file | Boolean | false |
Configuration
(vdk config-help is useful command to browse all config options of your installation of vdk)
| Name | Description | (example) Value |
|---|---|---|
| git_url | URL of the Git repository to be cloned. | "https://github.com/user/repo" |
Build and testing
pip install -r requirements.txt
pip install -e .
pytest
In VDK repo ../build-plugin.sh script can be used also.
Note about the CICD:
.plugin-ci.yaml is needed only for plugins part of Versatile Data Kit Plugin repo.
The CI/CD is separated in two stages, a build stage and a release stage. The build stage is made up of a few jobs, all which inherit from the same job configuration and only differ in the Python version they use (3.7, 3.8, 3.9 and 3.10). They run according to rules, which are ordered in a way such that changes to a plugin's directory trigger the plugin CI, but changes to a different plugin does not.
Metadata
Release files for vdk-data-source-git 0.1.1190994517
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vdk-data-source-git-0.1.1190994517.tar.gz | 4.7 kB | Without provenance | Details for vdk-data-source-git-0.1.1190994517.tar.gz |
Release files / vdk-data-source-git-0.1.1190994517.tar.gz
| Download URL | vdk-data-source-git-0.1.1190994517.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fedf3ed65f54c1b0c56d2778396a823e780034bd75287c33c26d9d7dd2fc872f
|
|
BLAKE2b-256 checksum How to use checksums |
c2fab9544ecc6926134014de184be3d8f0fe2d6b49943553b97cf6d5330e7297
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.13
|
Security for vdk-data-source-git 0.1.1190994517
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.