octicons-pack 19.15.5__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.
- octicons_pack-19.15.5/Cargo.lock +184 -0
- octicons_pack-19.15.5/Cargo.toml +10 -0
- octicons_pack-19.15.5/LICENSE +21 -0
- octicons_pack-19.15.5/PKG-INFO +51 -0
- octicons_pack-19.15.5/README.md +37 -0
- octicons_pack-19.15.5/crates/octicons/Cargo.toml +24 -0
- octicons_pack-19.15.5/crates/octicons/LICENSE +21 -0
- octicons_pack-19.15.5/crates/octicons/README.md +37 -0
- octicons_pack-19.15.5/crates/octicons/octicons_pack.pyi +666 -0
- octicons_pack-19.15.5/crates/octicons/src/finder/mod.rs +24 -0
- octicons_pack-19.15.5/crates/octicons/src/finder/part_00.rs +208 -0
- octicons_pack-19.15.5/crates/octicons/src/finder/part_01.rs +208 -0
- octicons_pack-19.15.5/crates/octicons/src/finder/part_02.rs +208 -0
- octicons_pack-19.15.5/crates/octicons/src/finder/part_03.rs +65 -0
- octicons_pack-19.15.5/crates/octicons/src/icons/mod.rs +9 -0
- octicons_pack-19.15.5/crates/octicons/src/icons/part_00.rs +1202 -0
- octicons_pack-19.15.5/crates/octicons/src/icons/part_01.rs +1202 -0
- octicons_pack-19.15.5/crates/octicons/src/icons/part_02.rs +1202 -0
- octicons_pack-19.15.5/crates/octicons/src/icons/part_03.rs +344 -0
- octicons_pack-19.15.5/crates/octicons/src/lib.rs +34 -0
- octicons_pack-19.15.5/crates/octicons/src/py_binding/mod.rs +18 -0
- octicons_pack-19.15.5/crates/octicons/src/py_binding/part_00.rs +207 -0
- octicons_pack-19.15.5/crates/octicons/src/py_binding/part_01.rs +240 -0
- octicons_pack-19.15.5/crates/octicons/src/py_binding/part_02.rs +207 -0
- octicons_pack-19.15.5/crates/octicons/src/py_binding/part_03.rs +76 -0
- octicons_pack-19.15.5/crates/octicons/tests/test_octicons.py +7 -0
- octicons_pack-19.15.5/pyproject.toml +26 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "autocfg"
|
|
7
|
+
version = "1.5.0"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "fontawesome-free-pack"
|
|
13
|
+
version = "7.0.0"
|
|
14
|
+
dependencies = [
|
|
15
|
+
"pyo3",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
[[package]]
|
|
19
|
+
name = "heck"
|
|
20
|
+
version = "0.5.0"
|
|
21
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
22
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
23
|
+
|
|
24
|
+
[[package]]
|
|
25
|
+
name = "indoc"
|
|
26
|
+
version = "2.0.6"
|
|
27
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
28
|
+
checksum = "f4c7245a08504955605670dbf141fceab975f15ca21570696aebe9d2e71576bd"
|
|
29
|
+
|
|
30
|
+
[[package]]
|
|
31
|
+
name = "libc"
|
|
32
|
+
version = "0.2.175"
|
|
33
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
34
|
+
checksum = "6a82ae493e598baaea5209805c49bbf2ea7de956d50d7da0da1164f9c6d28543"
|
|
35
|
+
|
|
36
|
+
[[package]]
|
|
37
|
+
name = "material-design-icons-pack"
|
|
38
|
+
version = "7.4.47"
|
|
39
|
+
dependencies = [
|
|
40
|
+
"pyo3",
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
[[package]]
|
|
44
|
+
name = "memoffset"
|
|
45
|
+
version = "0.9.1"
|
|
46
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
47
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
48
|
+
dependencies = [
|
|
49
|
+
"autocfg",
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
[[package]]
|
|
53
|
+
name = "octicons-pack"
|
|
54
|
+
version = "19.15.5"
|
|
55
|
+
dependencies = [
|
|
56
|
+
"pyo3",
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
[[package]]
|
|
60
|
+
name = "once_cell"
|
|
61
|
+
version = "1.21.3"
|
|
62
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
63
|
+
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
|
|
64
|
+
|
|
65
|
+
[[package]]
|
|
66
|
+
name = "portable-atomic"
|
|
67
|
+
version = "1.11.1"
|
|
68
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
69
|
+
checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483"
|
|
70
|
+
|
|
71
|
+
[[package]]
|
|
72
|
+
name = "proc-macro2"
|
|
73
|
+
version = "1.0.101"
|
|
74
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
75
|
+
checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de"
|
|
76
|
+
dependencies = [
|
|
77
|
+
"unicode-ident",
|
|
78
|
+
]
|
|
79
|
+
|
|
80
|
+
[[package]]
|
|
81
|
+
name = "pyo3"
|
|
82
|
+
version = "0.26.0"
|
|
83
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
84
|
+
checksum = "7ba0117f4212101ee6544044dae45abe1083d30ce7b29c4b5cbdfa2354e07383"
|
|
85
|
+
dependencies = [
|
|
86
|
+
"indoc",
|
|
87
|
+
"libc",
|
|
88
|
+
"memoffset",
|
|
89
|
+
"once_cell",
|
|
90
|
+
"portable-atomic",
|
|
91
|
+
"pyo3-build-config",
|
|
92
|
+
"pyo3-ffi",
|
|
93
|
+
"pyo3-macros",
|
|
94
|
+
"unindent",
|
|
95
|
+
]
|
|
96
|
+
|
|
97
|
+
[[package]]
|
|
98
|
+
name = "pyo3-build-config"
|
|
99
|
+
version = "0.26.0"
|
|
100
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
101
|
+
checksum = "4fc6ddaf24947d12a9aa31ac65431fb1b851b8f4365426e182901eabfb87df5f"
|
|
102
|
+
dependencies = [
|
|
103
|
+
"target-lexicon",
|
|
104
|
+
]
|
|
105
|
+
|
|
106
|
+
[[package]]
|
|
107
|
+
name = "pyo3-ffi"
|
|
108
|
+
version = "0.26.0"
|
|
109
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
110
|
+
checksum = "025474d3928738efb38ac36d4744a74a400c901c7596199e20e45d98eb194105"
|
|
111
|
+
dependencies = [
|
|
112
|
+
"libc",
|
|
113
|
+
"pyo3-build-config",
|
|
114
|
+
]
|
|
115
|
+
|
|
116
|
+
[[package]]
|
|
117
|
+
name = "pyo3-macros"
|
|
118
|
+
version = "0.26.0"
|
|
119
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
120
|
+
checksum = "2e64eb489f22fe1c95911b77c44cc41e7c19f3082fc81cce90f657cdc42ffded"
|
|
121
|
+
dependencies = [
|
|
122
|
+
"proc-macro2",
|
|
123
|
+
"pyo3-macros-backend",
|
|
124
|
+
"quote",
|
|
125
|
+
"syn",
|
|
126
|
+
]
|
|
127
|
+
|
|
128
|
+
[[package]]
|
|
129
|
+
name = "pyo3-macros-backend"
|
|
130
|
+
version = "0.26.0"
|
|
131
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
132
|
+
checksum = "100246c0ecf400b475341b8455a9213344569af29a3c841d29270e53102e0fcf"
|
|
133
|
+
dependencies = [
|
|
134
|
+
"heck",
|
|
135
|
+
"proc-macro2",
|
|
136
|
+
"pyo3-build-config",
|
|
137
|
+
"quote",
|
|
138
|
+
"syn",
|
|
139
|
+
]
|
|
140
|
+
|
|
141
|
+
[[package]]
|
|
142
|
+
name = "quote"
|
|
143
|
+
version = "1.0.40"
|
|
144
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
145
|
+
checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
|
|
146
|
+
dependencies = [
|
|
147
|
+
"proc-macro2",
|
|
148
|
+
]
|
|
149
|
+
|
|
150
|
+
[[package]]
|
|
151
|
+
name = "simple-icons-pack"
|
|
152
|
+
version = "15.11.0"
|
|
153
|
+
dependencies = [
|
|
154
|
+
"pyo3",
|
|
155
|
+
]
|
|
156
|
+
|
|
157
|
+
[[package]]
|
|
158
|
+
name = "syn"
|
|
159
|
+
version = "2.0.106"
|
|
160
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
161
|
+
checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6"
|
|
162
|
+
dependencies = [
|
|
163
|
+
"proc-macro2",
|
|
164
|
+
"quote",
|
|
165
|
+
"unicode-ident",
|
|
166
|
+
]
|
|
167
|
+
|
|
168
|
+
[[package]]
|
|
169
|
+
name = "target-lexicon"
|
|
170
|
+
version = "0.13.2"
|
|
171
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
172
|
+
checksum = "e502f78cdbb8ba4718f566c418c52bc729126ffd16baee5baa718cf25dd5a69a"
|
|
173
|
+
|
|
174
|
+
[[package]]
|
|
175
|
+
name = "unicode-ident"
|
|
176
|
+
version = "1.0.18"
|
|
177
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
178
|
+
checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
|
|
179
|
+
|
|
180
|
+
[[package]]
|
|
181
|
+
name = "unindent"
|
|
182
|
+
version = "0.2.4"
|
|
183
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
184
|
+
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 GitHub Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: octicons-pack
|
|
3
|
+
Version: 19.15.5
|
|
4
|
+
Classifier: Programming Language :: Rust
|
|
5
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Summary: A redistribution of @primer/octicons npm package's SVG and metadata.
|
|
9
|
+
License: MIT
|
|
10
|
+
Requires-Python: >=3.8
|
|
11
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
12
|
+
Project-URL: source, https://github.com/2bndy5/redist-icons
|
|
13
|
+
|
|
14
|
+
# octicons-pack
|
|
15
|
+
|
|
16
|
+
A redistribution of SVG assets and some metadata from the
|
|
17
|
+
[`@primer/octicons` npm package](https://www.npmjs.com/package/@primer/octicons).
|
|
18
|
+
|
|
19
|
+
## Optimized SVG data
|
|
20
|
+
|
|
21
|
+
The SVG data is embedded as strings after it is optimized with SVGO. This
|
|
22
|
+
package is intended to easily inject SVG data into HTML documents. Thus, we have
|
|
23
|
+
stripped any `width` and `height` fields from the `<svg>` element, while
|
|
24
|
+
retaining any `viewBox` field in the `<svg>` element.
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
All icons are instantiated as constants using the `Icon` data structure.
|
|
29
|
+
There is a convenient `get_icon()` function to fetch an icon using it's slug name.
|
|
30
|
+
|
|
31
|
+
Note, most icons have `*_16` or `*_24` variants to indicate the
|
|
32
|
+
original height and width.
|
|
33
|
+
|
|
34
|
+
### In Python
|
|
35
|
+
|
|
36
|
+
```python
|
|
37
|
+
from octicons_pack import get_icon, GIT_BRANCH_24
|
|
38
|
+
|
|
39
|
+
fetched = get_icon("git-branch-24")
|
|
40
|
+
assert fetched is not None
|
|
41
|
+
assert GIT_BRANCH_24.svg == fetched.svg
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### In Rust
|
|
45
|
+
|
|
46
|
+
```rust
|
|
47
|
+
use octicons_pack::{get_icon, GIT_BRANCH_24};
|
|
48
|
+
|
|
49
|
+
assert_eq!(GIT_BRANCH_24.svg, get_icon("git-branch-24").unwrap().svg);
|
|
50
|
+
```
|
|
51
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# octicons-pack
|
|
2
|
+
|
|
3
|
+
A redistribution of SVG assets and some metadata from the
|
|
4
|
+
[`@primer/octicons` npm package](https://www.npmjs.com/package/@primer/octicons).
|
|
5
|
+
|
|
6
|
+
## Optimized SVG data
|
|
7
|
+
|
|
8
|
+
The SVG data is embedded as strings after it is optimized with SVGO. This
|
|
9
|
+
package is intended to easily inject SVG data into HTML documents. Thus, we have
|
|
10
|
+
stripped any `width` and `height` fields from the `<svg>` element, while
|
|
11
|
+
retaining any `viewBox` field in the `<svg>` element.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
All icons are instantiated as constants using the `Icon` data structure.
|
|
16
|
+
There is a convenient `get_icon()` function to fetch an icon using it's slug name.
|
|
17
|
+
|
|
18
|
+
Note, most icons have `*_16` or `*_24` variants to indicate the
|
|
19
|
+
original height and width.
|
|
20
|
+
|
|
21
|
+
### In Python
|
|
22
|
+
|
|
23
|
+
```python
|
|
24
|
+
from octicons_pack import get_icon, GIT_BRANCH_24
|
|
25
|
+
|
|
26
|
+
fetched = get_icon("git-branch-24")
|
|
27
|
+
assert fetched is not None
|
|
28
|
+
assert GIT_BRANCH_24.svg == fetched.svg
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### In Rust
|
|
32
|
+
|
|
33
|
+
```rust
|
|
34
|
+
use octicons_pack::{get_icon, GIT_BRANCH_24};
|
|
35
|
+
|
|
36
|
+
assert_eq!(GIT_BRANCH_24.svg, get_icon("git-branch-24").unwrap().svg);
|
|
37
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "octicons-pack"
|
|
3
|
+
description = "A redistribution of @primer/octicons npm package's SVG and metadata."
|
|
4
|
+
version = "19.15.5"
|
|
5
|
+
license = "MIT"
|
|
6
|
+
exclude = ["deno.json", "main.ts", "pyproject.toml"]
|
|
7
|
+
readme = "README.md"
|
|
8
|
+
|
|
9
|
+
[package.repository]
|
|
10
|
+
workspace = true
|
|
11
|
+
|
|
12
|
+
[package.edition]
|
|
13
|
+
workspace = true
|
|
14
|
+
|
|
15
|
+
[lib]
|
|
16
|
+
name = "octicons_pack"
|
|
17
|
+
crate-type = ["cdylib","lib"]
|
|
18
|
+
|
|
19
|
+
[dependencies.pyo3]
|
|
20
|
+
workspace = true
|
|
21
|
+
optional = true
|
|
22
|
+
|
|
23
|
+
[features]
|
|
24
|
+
pyo3 = ["dep:pyo3"]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 GitHub Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# octicons-pack
|
|
2
|
+
|
|
3
|
+
A redistribution of SVG assets and some metadata from the
|
|
4
|
+
[`@primer/octicons` npm package](https://www.npmjs.com/package/@primer/octicons).
|
|
5
|
+
|
|
6
|
+
## Optimized SVG data
|
|
7
|
+
|
|
8
|
+
The SVG data is embedded as strings after it is optimized with SVGO. This
|
|
9
|
+
package is intended to easily inject SVG data into HTML documents. Thus, we have
|
|
10
|
+
stripped any `width` and `height` fields from the `<svg>` element, while
|
|
11
|
+
retaining any `viewBox` field in the `<svg>` element.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
All icons are instantiated as constants using the `Icon` data structure.
|
|
16
|
+
There is a convenient `get_icon()` function to fetch an icon using it's slug name.
|
|
17
|
+
|
|
18
|
+
Note, most icons have `*_16` or `*_24` variants to indicate the
|
|
19
|
+
original height and width.
|
|
20
|
+
|
|
21
|
+
### In Python
|
|
22
|
+
|
|
23
|
+
```python
|
|
24
|
+
from octicons_pack import get_icon, GIT_BRANCH_24
|
|
25
|
+
|
|
26
|
+
fetched = get_icon("git-branch-24")
|
|
27
|
+
assert fetched is not None
|
|
28
|
+
assert GIT_BRANCH_24.svg == fetched.svg
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### In Rust
|
|
32
|
+
|
|
33
|
+
```rust
|
|
34
|
+
use octicons_pack::{get_icon, GIT_BRANCH_24};
|
|
35
|
+
|
|
36
|
+
assert_eq!(GIT_BRANCH_24.svg, get_icon("git-branch-24").unwrap().svg);
|
|
37
|
+
```
|