pyfulgur 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyfulgur-0.0.1/PKG-INFO +50 -0
- pyfulgur-0.0.1/README.md +32 -0
- pyfulgur-0.0.1/pyfulgur/__init__.py +14 -0
- pyfulgur-0.0.1/pyfulgur.egg-info/PKG-INFO +50 -0
- pyfulgur-0.0.1/pyfulgur.egg-info/SOURCES.txt +7 -0
- pyfulgur-0.0.1/pyfulgur.egg-info/dependency_links.txt +1 -0
- pyfulgur-0.0.1/pyfulgur.egg-info/top_level.txt +3 -0
- pyfulgur-0.0.1/pyproject.toml +31 -0
- pyfulgur-0.0.1/setup.cfg +4 -0
pyfulgur-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyfulgur
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Python bindings for fulgur — offline HTML/CSS to PDF conversion
|
|
5
|
+
Author-email: Mitsuru Hayasaka <hayasaka.mitsuru@gmail.com>
|
|
6
|
+
License: MIT OR Apache-2.0
|
|
7
|
+
Project-URL: Repository, https://github.com/mitsuru/fulgur
|
|
8
|
+
Project-URL: Documentation, https://github.com/mitsuru/fulgur
|
|
9
|
+
Keywords: pdf,html,css,conversion,typesetting
|
|
10
|
+
Classifier: Development Status :: 1 - Planning
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
14
|
+
Classifier: Programming Language :: Rust
|
|
15
|
+
Classifier: Topic :: Text Processing :: Markup :: HTML
|
|
16
|
+
Requires-Python: >=3.9
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
|
|
19
|
+
# pyfulgur
|
|
20
|
+
|
|
21
|
+
Python bindings for [fulgur](https://github.com/mitsuru/fulgur) — an offline, deterministic HTML/CSS to PDF conversion library written in Rust.
|
|
22
|
+
|
|
23
|
+
## Status
|
|
24
|
+
|
|
25
|
+
**This package is a name reservation.** The implementation is under active development.
|
|
26
|
+
|
|
27
|
+
## Planned API
|
|
28
|
+
|
|
29
|
+
```python
|
|
30
|
+
from pyfulgur import Engine, AssetBundle
|
|
31
|
+
|
|
32
|
+
bundle = AssetBundle()
|
|
33
|
+
bundle.add_css("body { font-family: sans-serif; }")
|
|
34
|
+
bundle.add_font_file("fonts/NotoSans-Regular.ttf")
|
|
35
|
+
|
|
36
|
+
engine = Engine.builder().page_size("A4").assets(bundle).build()
|
|
37
|
+
pdf_bytes = engine.render_html("<h1>Hello, world!</h1>")
|
|
38
|
+
|
|
39
|
+
with open("output.pdf", "wb") as f:
|
|
40
|
+
f.write(pdf_bytes)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Links
|
|
44
|
+
|
|
45
|
+
- [fulgur on GitHub](https://github.com/mitsuru/fulgur)
|
|
46
|
+
- [fulgur on crates.io](https://crates.io/crates/fulgur)
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
|
pyfulgur-0.0.1/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# pyfulgur
|
|
2
|
+
|
|
3
|
+
Python bindings for [fulgur](https://github.com/mitsuru/fulgur) — an offline, deterministic HTML/CSS to PDF conversion library written in Rust.
|
|
4
|
+
|
|
5
|
+
## Status
|
|
6
|
+
|
|
7
|
+
**This package is a name reservation.** The implementation is under active development.
|
|
8
|
+
|
|
9
|
+
## Planned API
|
|
10
|
+
|
|
11
|
+
```python
|
|
12
|
+
from pyfulgur import Engine, AssetBundle
|
|
13
|
+
|
|
14
|
+
bundle = AssetBundle()
|
|
15
|
+
bundle.add_css("body { font-family: sans-serif; }")
|
|
16
|
+
bundle.add_font_file("fonts/NotoSans-Regular.ttf")
|
|
17
|
+
|
|
18
|
+
engine = Engine.builder().page_size("A4").assets(bundle).build()
|
|
19
|
+
pdf_bytes = engine.render_html("<h1>Hello, world!</h1>")
|
|
20
|
+
|
|
21
|
+
with open("output.pdf", "wb") as f:
|
|
22
|
+
f.write(pdf_bytes)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Links
|
|
26
|
+
|
|
27
|
+
- [fulgur on GitHub](https://github.com/mitsuru/fulgur)
|
|
28
|
+
- [fulgur on crates.io](https://crates.io/crates/fulgur)
|
|
29
|
+
|
|
30
|
+
## License
|
|
31
|
+
|
|
32
|
+
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""pyfulgur — Python bindings for fulgur (HTML/CSS to PDF).
|
|
2
|
+
|
|
3
|
+
This is a placeholder package. The implementation is under active development.
|
|
4
|
+
See https://github.com/mitsuru/fulgur for details.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
__version__ = "0.0.1"
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def _placeholder() -> None:
|
|
11
|
+
raise NotImplementedError(
|
|
12
|
+
"pyfulgur is not yet implemented. "
|
|
13
|
+
"See https://github.com/mitsuru/fulgur for progress."
|
|
14
|
+
)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pyfulgur
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Python bindings for fulgur — offline HTML/CSS to PDF conversion
|
|
5
|
+
Author-email: Mitsuru Hayasaka <hayasaka.mitsuru@gmail.com>
|
|
6
|
+
License: MIT OR Apache-2.0
|
|
7
|
+
Project-URL: Repository, https://github.com/mitsuru/fulgur
|
|
8
|
+
Project-URL: Documentation, https://github.com/mitsuru/fulgur
|
|
9
|
+
Keywords: pdf,html,css,conversion,typesetting
|
|
10
|
+
Classifier: Development Status :: 1 - Planning
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
14
|
+
Classifier: Programming Language :: Rust
|
|
15
|
+
Classifier: Topic :: Text Processing :: Markup :: HTML
|
|
16
|
+
Requires-Python: >=3.9
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
|
|
19
|
+
# pyfulgur
|
|
20
|
+
|
|
21
|
+
Python bindings for [fulgur](https://github.com/mitsuru/fulgur) — an offline, deterministic HTML/CSS to PDF conversion library written in Rust.
|
|
22
|
+
|
|
23
|
+
## Status
|
|
24
|
+
|
|
25
|
+
**This package is a name reservation.** The implementation is under active development.
|
|
26
|
+
|
|
27
|
+
## Planned API
|
|
28
|
+
|
|
29
|
+
```python
|
|
30
|
+
from pyfulgur import Engine, AssetBundle
|
|
31
|
+
|
|
32
|
+
bundle = AssetBundle()
|
|
33
|
+
bundle.add_css("body { font-family: sans-serif; }")
|
|
34
|
+
bundle.add_font_file("fonts/NotoSans-Regular.ttf")
|
|
35
|
+
|
|
36
|
+
engine = Engine.builder().page_size("A4").assets(bundle).build()
|
|
37
|
+
pdf_bytes = engine.render_html("<h1>Hello, world!</h1>")
|
|
38
|
+
|
|
39
|
+
with open("output.pdf", "wb") as f:
|
|
40
|
+
f.write(pdf_bytes)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Links
|
|
44
|
+
|
|
45
|
+
- [fulgur on GitHub](https://github.com/mitsuru/fulgur)
|
|
46
|
+
- [fulgur on crates.io](https://crates.io/crates/fulgur)
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# NOTE: placeholder build uses setuptools. Real builds will use maturin.
|
|
2
|
+
[build-system]
|
|
3
|
+
requires = ["setuptools>=68.0"]
|
|
4
|
+
build-backend = "setuptools.build_meta"
|
|
5
|
+
|
|
6
|
+
[project]
|
|
7
|
+
name = "pyfulgur"
|
|
8
|
+
version = "0.0.1"
|
|
9
|
+
description = "Python bindings for fulgur — offline HTML/CSS to PDF conversion"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
license = {text = "MIT OR Apache-2.0"}
|
|
12
|
+
requires-python = ">=3.9"
|
|
13
|
+
authors = [
|
|
14
|
+
{ name = "Mitsuru Hayasaka", email = "hayasaka.mitsuru@gmail.com" },
|
|
15
|
+
]
|
|
16
|
+
keywords = ["pdf", "html", "css", "conversion", "typesetting"]
|
|
17
|
+
classifiers = [
|
|
18
|
+
"Development Status :: 1 - Planning",
|
|
19
|
+
"Intended Audience :: Developers",
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
22
|
+
"Programming Language :: Rust",
|
|
23
|
+
"Topic :: Text Processing :: Markup :: HTML",
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
[project.urls]
|
|
27
|
+
Repository = "https://github.com/mitsuru/fulgur"
|
|
28
|
+
Documentation = "https://github.com/mitsuru/fulgur"
|
|
29
|
+
|
|
30
|
+
[tool.setuptools.packages.find]
|
|
31
|
+
where = ["."]
|
pyfulgur-0.0.1/setup.cfg
ADDED