zhmiscellanylite 0.0.2__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.
File without changes
@@ -0,0 +1,20 @@
1
+ Metadata-Version: 2.1
2
+ Name: zhmiscellanylite
3
+ Version: 0.0.2
4
+ Summary: A collection of useful/interesting python libraries made by zh.
5
+ Home-page: https://discord.gg/ThBBAuueVJ
6
+ Author: zh
7
+ Author-email: imnotgivingmyemailjustaddmeondiscordmydiscordisz_h_@zh.com
8
+ Project-URL: Bug Tracker, https://github.com/zen-ham/zhmiscellany/issues
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Operating System :: Microsoft :: Windows
11
+ Requires-Python: >=3.6
12
+ Description-Content-Type: text/markdown
13
+
14
+ `zhmiscellanylite`
15
+ =
16
+
17
+ This is a smaller, lighter, server focused version of my main package [zhmiscellany](https://github.com/zen-ham/zhmiscellany)
18
+ -
19
+
20
+ For documentation please go there instead.
@@ -0,0 +1,7 @@
1
+ `zhmiscellanylite`
2
+ =
3
+
4
+ This is a smaller, lighter, server focused version of my main package [zhmiscellany](https://github.com/zen-ham/zhmiscellany)
5
+ -
6
+
7
+ For documentation please go there instead.
@@ -0,0 +1,6 @@
1
+ [build-system]
2
+ requires = [
3
+ "setuptools<=65.5.0",
4
+ "wheel"
5
+ ]
6
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1,37 @@
1
+ [metadata]
2
+ name = zhmiscellanylite
3
+ version = 0.0.2
4
+ author = zh
5
+ author_email = imnotgivingmyemailjustaddmeondiscordmydiscordisz_h_@zh.com
6
+ description = A collection of useful/interesting python libraries made by zh.
7
+ long_description = file: README.md
8
+ long_description_content_type = text/markdown
9
+ url = https://discord.gg/ThBBAuueVJ
10
+ metadata_version = 2.2
11
+ project_urls =
12
+ Bug Tracker = https://github.com/zen-ham/zhmiscellany/issues
13
+ classifiers =
14
+ Programming Language :: Python :: 3
15
+ Operating System :: Microsoft :: Windows
16
+
17
+ [options]
18
+ install_requires =
19
+ pywin32>=0; sys_platform == "win32"
20
+ dill>=0
21
+ numpy>=0
22
+ kthread>=0
23
+ orjson>=0
24
+ zstandard>=0
25
+ package_dir =
26
+ = src
27
+ packages = find:
28
+ python_requires = >=3.6
29
+ include_package_data = True
30
+
31
+ [options.packages.find]
32
+ where = src
33
+
34
+ [egg_info]
35
+ tag_build =
36
+ tag_date = 0
37
+
@@ -0,0 +1 @@
1
+ from . import processing, misc, fileio, string, math, list, dict
@@ -0,0 +1,11 @@
1
+ def is_junction(entry):
2
+ import sys
3
+ if sys.platform != "win32":
4
+ return False
5
+ try:
6
+ st = entry.stat(follow_symlinks=False)
7
+ # On Windows, st_file_attributes is available.
8
+ # FILE_ATTRIBUTE_REPARSE_POINT (0x400) indicates a reparse point (e.g. junction).
9
+ return hasattr(st, "st_file_attributes") and bool(st.st_file_attributes & 0x400)
10
+ except Exception:
11
+ return False
@@ -0,0 +1,3 @@
1
+ def print_dict(ldict):
2
+ import json
3
+ print(json.dumps(ldict, indent=4))