VSPacker
Packer is a utility library for packaging c# projects into a distributable zip file. It is designed to be used in a Post Build event in Visual Studio.
Installation
pip install vspacker
Usage
See the example below for a simple implementation. For more detail see examples.
Python Implementation
import os
import vspacker.package_builder as builder
def main():
args = parse_args()
project_file = args.project_file
solution_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
example_file = os.path.join(solution_root, "Example/grasshopper", "portal-example.gh")
proj = builder.AssemblyBuilder(project_file)
proj.build_zip(
input_dir=os.path.join(proj.project_dir, "bin", "release", "net48"),
zip_filename=f"{proj.project_name}-{proj.version}.zip",
exclude_patterns=["*.xml", "*.pdb"],
include_files=[
(os.path.join(solution_root, "LICENSE"), "resources/LICENSE.txt"),
os.path.join(solution_root, "README.md"),
],
internal_folder=proj.project_name,
)
proj.copy_file(
example_file,
proj.output_folder,
rename=f"{proj.project_name}-example-{proj.version}.gh",
)
if __name__ == "__main__":
main()
Metadata
Release files for VSPacker 0.0.7
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 |
|---|---|---|---|---|
| VSPacker-0.0.7.tar.gz | 8.1 kB | Without provenance | Details for VSPacker-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| VSPacker-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for VSPacker-0.0.7-py3-none-any.whl |
Total release size: 17.5 kB
Release files / VSPacker-0.0.7.tar.gz
| Download URL | VSPacker-0.0.7.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a131bf381af8d5c9971329fe5d6fa5e7f7bacf0d3fd4ebcac9ce9c1fab8c43d
|
|
BLAKE2b-256 checksum How to use checksums |
e1ce3aa654cd3ff39ee7323cb55ca2dec0b1b1c15b53fddc74af785966f86a73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.11
|
Release files / VSPacker-0.0.7-py3-none-any.whl
| Download URL | VSPacker-0.0.7-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6be67fa32394d795b27687c4e71758534efac17c99e01fb4c25cdbf31f8667a3
|
|
BLAKE2b-256 checksum How to use checksums |
d36e7e310b83f9b0b9b94dc3f13ae320440ca00fc3b7be895a17f91baea0c855
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.11
|
Security for VSPacker 0.0.7
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.