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.
- zhmiscellanylite-0.0.2/MANIFEST.in +0 -0
- zhmiscellanylite-0.0.2/PKG-INFO +20 -0
- zhmiscellanylite-0.0.2/README.md +7 -0
- zhmiscellanylite-0.0.2/pyproject.toml +6 -0
- zhmiscellanylite-0.0.2/setup.cfg +37 -0
- zhmiscellanylite-0.0.2/src/zhmiscellanylite/__init__.py +1 -0
- zhmiscellanylite-0.0.2/src/zhmiscellanylite/_fileio_supportfuncs.py +11 -0
- zhmiscellanylite-0.0.2/src/zhmiscellanylite/dict.py +3 -0
- zhmiscellanylite-0.0.2/src/zhmiscellanylite/fileio.py +673 -0
- zhmiscellanylite-0.0.2/src/zhmiscellanylite/list.py +58 -0
- zhmiscellanylite-0.0.2/src/zhmiscellanylite/math.py +87 -0
- zhmiscellanylite-0.0.2/src/zhmiscellanylite/misc.py +797 -0
- zhmiscellanylite-0.0.2/src/zhmiscellanylite/processing.py +134 -0
- zhmiscellanylite-0.0.2/src/zhmiscellanylite/string.py +161 -0
- zhmiscellanylite-0.0.2/src/zhmiscellanylite.egg-info/PKG-INFO +20 -0
- zhmiscellanylite-0.0.2/src/zhmiscellanylite.egg-info/SOURCES.txt +18 -0
- zhmiscellanylite-0.0.2/src/zhmiscellanylite.egg-info/dependency_links.txt +1 -0
- zhmiscellanylite-0.0.2/src/zhmiscellanylite.egg-info/requires.txt +8 -0
- zhmiscellanylite-0.0.2/src/zhmiscellanylite.egg-info/top_level.txt +1 -0
|
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,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
|