githead 1.1.0__cp39-abi3-win_amd64.whl

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.
githead/__init__.py ADDED
@@ -0,0 +1,5 @@
1
+ from githead._lib import githead
2
+
3
+ __all__ = [
4
+ 'githead',
5
+ ]
githead/_lib.pyd ADDED
Binary file
githead/_lib.pyi ADDED
@@ -0,0 +1,9 @@
1
+ from os import PathLike
2
+
3
+ def githead(dir_: PathLike[str] | str = '.git') -> str:
4
+ """
5
+ Get the current git commit hash.
6
+
7
+ >>> githead()
8
+ 'bca663418428d603eea8243d08a5ded19eb19a34'
9
+ """
githead/py.typed ADDED
File without changes
@@ -0,0 +1,53 @@
1
+ Metadata-Version: 2.3
2
+ Name: githead
3
+ Version: 1.1.0
4
+ Classifier: Development Status :: 5 - Production/Stable
5
+ Classifier: Intended Audience :: Developers
6
+ Classifier: License :: OSI Approved :: The Unlicense (Unlicense)
7
+ Classifier: Operating System :: OS Independent
8
+ Classifier: Programming Language :: Python :: 3.10
9
+ Classifier: Programming Language :: Python :: 3.11
10
+ Classifier: Programming Language :: Python :: 3.12
11
+ Classifier: Programming Language :: Python :: 3.13
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: Implementation :: CPython
14
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
15
+ Classifier: Programming Language :: Rust
16
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
17
+ Classifier: Typing :: Typed
18
+ License-File: LICENSE
19
+ Summary: Simple utility for getting the current git commit hash (HEAD)
20
+ Keywords: commit,git,hash,vcs,version-control
21
+ Author-email: Kamil Monicz <kamil@monicz.dev>
22
+ Requires-Python: >=3.9
23
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
24
+ Project-URL: Issues, https://github.com/Zaczero/githead/issues
25
+ Project-URL: Repository, https://github.com/Zaczero/githead
26
+
27
+ # githead
28
+
29
+ [![PyPI - Python Version](https://shields.monicz.dev/pypi/pyversions/githead)](https://pypi.org/project/githead)
30
+ [![Liberapay Patrons](https://shields.monicz.dev/liberapay/patrons/Zaczero?logo=liberapay&label=Patrons)](https://liberapay.com/Zaczero/)
31
+ [![GitHub Sponsors](https://shields.monicz.dev/github/sponsors/Zaczero?logo=github&label=Sponsors&color=%23db61a2)](https://github.com/sponsors/Zaczero)
32
+
33
+ Simple utility for getting the current git commit hash.
34
+
35
+ ## Installation
36
+
37
+ The recommended installation method is through the PyPI package manager. The project is implemented in Rust and several pre-built binary wheels are available for Linux, macOS, and Windows, with support for both x64 and ARM architectures.
38
+
39
+ ```sh
40
+ pip install githead
41
+ ```
42
+
43
+ ## Basic usage
44
+
45
+ ```py
46
+ from githead import githead
47
+
48
+ githead() # -> 'bca663418428d603eea8243d08a5ded19eb19a34'
49
+
50
+ # defaults to '.git' directory but can be changed:
51
+ githead('path/to/.git')
52
+ ```
53
+
@@ -0,0 +1,8 @@
1
+ githead-1.1.0.dist-info/METADATA,sha256=BhWvuzjh0d2JNQvRkuQVPoqU9vVcpYkK1_BRocJBARQ,2176
2
+ githead-1.1.0.dist-info/WHEEL,sha256=erh9dnXnFp-1MaD2mcCWILdYa9pcm_sTC212j7ZVtyQ,94
3
+ githead-1.1.0.dist-info/licenses/LICENSE,sha256=Q2ptU2E48gOsMzhYz_kqVovmJ5d1KzrblLyqD2_-fvY,1235
4
+ githead/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ githead/_lib.pyi,sha256=AmWeMmUdeLbHyfW744SFZKmduiOZrAk-it_afW53rn8,209
6
+ githead/__init__.py,sha256=gvlhsZBRViXAozvPO5xKwyCtrCQc8RrXcvaQlgvwP7w,68
7
+ githead/_lib.pyd,sha256=J4NzZPMjlHx4BM4s3G9JNZOkFVCfx_-l-vIcId7cqL0,239616
8
+ githead-1.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.7.4)
3
+ Root-Is-Purelib: false
4
+ Tag: cp39-abi3-win_amd64
@@ -0,0 +1,24 @@
1
+ This is free and unencumbered software released into the public domain.
2
+
3
+ Anyone is free to copy, modify, publish, use, compile, sell, or
4
+ distribute this software, either in source code form or as a compiled
5
+ binary, for any purpose, commercial or non-commercial, and by any
6
+ means.
7
+
8
+ In jurisdictions that recognize copyright laws, the author or authors
9
+ of this software dedicate any and all copyright interest in the
10
+ software to the public domain. We make this dedication for the benefit
11
+ of the public at large and to the detriment of our heirs and
12
+ successors. We intend this dedication to be an overt act of
13
+ relinquishment in perpetuity of all present and future rights to this
14
+ software under copyright law.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
23
+
24
+ For more information, please refer to <https://unlicense.org>