Convert to proper python package
This commit is contained in:
@@ -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",
|
||||
]
|
||||
Reference in New Issue
Block a user