Convert to proper python package

This commit is contained in:
Kylian Schmidt
2026-04-22 13:48:23 +02:00
parent 7e36688d1d
commit 27ea17246c
52 changed files with 6888 additions and 246 deletions
+36
View File
@@ -0,0 +1,36 @@
"""
Scientific Gallery Generator
A Python package for creating responsive HTML galleries from scientific plot
collections. Supports PDF to PNG conversion, hierarchical directory structures,
and can be used programmatically or via CLI.
Example usage:
from gallery import generate, GalleryConfig, GallerySource
config = GalleryConfig(
web_folder="/path/to/output",
sources=[
GallerySource(name="plots", path="/path/to/plots"),
]
)
success = generate(config, verbose=True)
"""
__version__ = "0.1.0"
__author__ = "K. Schmidt"
from gallery.config import (
GalleryConfig,
GallerySource,
GalleryDefaults,
)
from gallery.api import generate
__all__ = [
"generate",
"GalleryConfig",
"GallerySource",
"GalleryDefaults",
]