Skip to main content

Xnippet - Extendable Plugin Architecture with Snippets for Python

Xnippet is a standalone module designed to enhance the extensibility of Python-based projects, particularly in data analysis. Its key features include:

  • Extensibility: Functions as a new type of package manager that uses your GitHub repository for code version control, allowing the addition of features without modifying the existing codebase or increasing dependencies.
  • Standardized Configuration: Facilitates consistent settings across various environments and projects. Configurations and snippets can be inherited by subdirectories, maintaining uniformity across projects within the same directory. This feature is inspired by tools like pyenv.
  • Sharing Code Snippets: Enables a live searchable interface for code snippets stored in specified GitHub repositories. This feature supports the importing and direct use of snippets without local installation, enhancing online plugin functionality.
  • Dependencies Control: Manages dependencies on a per-snippet basis, checking and resolving dependencies during download or online import. This includes resolving Python dependencies via PyPI, managing snippet dependencies within your repository, and verifying the availability of external executables.

Types of Snippets

Simple Snippets:

  • Python code that can be seamlessly imported and used within any module without specific entry-points.

Plugin Snippets:

  • Builds on Simple Snippets by adding entry-points to serve specific roles, ideal for developing Python packages with a straightforward plugin architecture.
  • Employs YAML for manifest packaging, with each snippet consisting of a single Python file and an accompanying manifest.

Getting Started

To begin integrating xnippet into your project, refer to our comprehensive Project Configuration Guide.

Documentation

For detailed documentation on each component of the xnippet system, please visit the following links:

Explore these documents to fully understand how each module can be utilized and configured to enrich your project with our versatile plugin architecture.

Contributing

Contributions are welcome! If you have suggestions or improvements, please fork the repository and submit a pull request.

License

xnippet is open-source software, freely distributed under the MIT license.

Metadata

Release files for xnippet 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 xnippet 0.1.1
File Size Uploaded
xnippet-0.1.1.tar.gz 30.7 kB Details

Built distribution (wheel)

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

Total release size: 69.5 kB

Release files / xnippet-0.1.1.tar.gz

Download URL xnippet-0.1.1.tar.gz
Size 30.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a49cd91f8ab50b052ce70248fbd03a153c66196581a3f92c3ff82099f4971e89
BLAKE2b-256 checksum
How to use checksums
d5af7a4120f65fc69c1ae22e2173c2465ccc85ae7f13800c58eaa0414faf587e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

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

Download URL xnippet-0.1.1-py3-none-any.whl
Size 38.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a24b6c0f3b770f82838cb3b247c4dcca3f60a6be4954414d0c3ef080e1f2653
BLAKE2b-256 checksum
How to use checksums
c794b5022db7d23309bd8c3d15e26b9d1129649ce6a477c390c37e2fd8a63719
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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