python-misc-utils 0.2__tar.gz → 0.21__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.
- {python_misc_utils-0.2 → python_misc_utils-0.21}/PKG-INFO +15 -1
- python_misc_utils-0.21/README.md +19 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/np_utils.py +0 -10
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/num_utils.py +6 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/python_misc_utils.egg-info/PKG-INFO +15 -1
- {python_misc_utils-0.2 → python_misc_utils-0.21}/setup.py +1 -1
- python_misc_utils-0.2/README.md +0 -5
- {python_misc_utils-0.2 → python_misc_utils-0.21}/LICENSE +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/__init__.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/abs_timeout.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/alog.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/app_main.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/archive_streamer.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/assert_checks.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/ast_utils.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/async_manager.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/break_control.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/buffered_iterator.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/cached_file.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/call_limiter.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/call_result_selector.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/cleanups.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/cmd.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/compression.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/cond_waiter.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/context_base.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/context_managers.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/core_utils.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/daemon_process.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/data_cache.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/date_utils.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/debug.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/dyn_modules.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/dynamod.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/env_config.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/executor.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/file_overwrite.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/fin_wrap.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/fp_utils.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/fs/__init__.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/fs/file_fs.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/fs/ftp_fs.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/fs/gcs_fs.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/fs/http_fs.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/fs/s3_fs.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/fs_base.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/fs_utils.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/gcs_fs.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/gen_indices.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/gfs.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/git_repo.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/global_namespace.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/http_async_fetcher.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/http_server.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/http_utils.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/img_utils.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/infix_op.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/inspect_utils.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/iostream.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/iter_file.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/key_wrap.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/lazy_import.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/lockfile.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/mem_size.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/mirror_from.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/mmap.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/module_utils.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/moving_average.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/msgpack_streamer.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/multi_wait.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/multiprocessing.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/named_array.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/no_break.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/no_except.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/np_ml_framework.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/ntuple_utils.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/obj.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/object_cache.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/object_tracker.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/ordered_set.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/osfd.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/packet.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/parquet_streamer.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/pd_utils.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/periodic_task.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/pickle_wrap.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/pipeline.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/remap_pickle.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/resource_manager.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/rnd_utils.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/run_once.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/scheduler.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/select_params.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/signal.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/skl_utils.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/split.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/state.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/std_module.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/stream_dataframe.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/streamed_file.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/tempdir.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/template_replace.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/tensor_stream.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/thread_context.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/throttle.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/time_trigger.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/timegen.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/traceback.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/tracking_executor.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/transform_array.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/uncompress.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/url_fetcher.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/utils.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/varint.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/virt_array.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/weak_call.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/work_results.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/py_misc_utils/writeback_file.py +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/pyproject.toml +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/python_misc_utils.egg-info/SOURCES.txt +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/python_misc_utils.egg-info/dependency_links.txt +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/python_misc_utils.egg-info/requires.txt +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/python_misc_utils.egg-info/top_level.txt +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/setup.cfg +0 -0
- {python_misc_utils-0.2 → python_misc_utils-0.21}/test/test_runner.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python_misc_utils
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.21
|
|
4
4
|
Summary: A collection of Python utility APIs
|
|
5
5
|
Author: Davide Libenzi
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -34,3 +34,17 @@ Dynamic: summary
|
|
|
34
34
|
I keep writing the same stuff in different projects, so I finally decided
|
|
35
35
|
to throw stuff into a common boilerplate and stop the cut&paste jobs.
|
|
36
36
|
|
|
37
|
+
## Install
|
|
38
|
+
|
|
39
|
+
The library can be installed using *PyPi*:
|
|
40
|
+
|
|
41
|
+
```Shell
|
|
42
|
+
$ pip install python-misc-utils
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Or directly from the *Github* repository:
|
|
46
|
+
|
|
47
|
+
```Shell
|
|
48
|
+
$ pip install git+https://github.com/davidel/py_misc_utils.git
|
|
49
|
+
```
|
|
50
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
## Python Utility Code
|
|
2
|
+
|
|
3
|
+
I keep writing the same stuff in different projects, so I finally decided
|
|
4
|
+
to throw stuff into a common boilerplate and stop the cut&paste jobs.
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
The library can be installed using *PyPi*:
|
|
9
|
+
|
|
10
|
+
```Shell
|
|
11
|
+
$ pip install python-misc-utils
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Or directly from the *Github* repository:
|
|
15
|
+
|
|
16
|
+
```Shell
|
|
17
|
+
$ pip install git+https://github.com/davidel/py_misc_utils.git
|
|
18
|
+
```
|
|
19
|
+
|
|
@@ -115,16 +115,6 @@ def is_numpy(v):
|
|
|
115
115
|
return type(v).__module__ == np.__name__
|
|
116
116
|
|
|
117
117
|
|
|
118
|
-
def is_sorted(data, descending=False):
|
|
119
|
-
if not isinstance(data, np.ndarray):
|
|
120
|
-
data = np.array(data)
|
|
121
|
-
|
|
122
|
-
if descending:
|
|
123
|
-
return np.all(data[:-1] >= data[1:])
|
|
124
|
-
|
|
125
|
-
return np.all(data[:-1] <= data[1:])
|
|
126
|
-
|
|
127
|
-
|
|
128
118
|
def astype(data, col, dtype):
|
|
129
119
|
if cu.isdict(dtype):
|
|
130
120
|
cdtype = dtype.get(col)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python_misc_utils
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.21
|
|
4
4
|
Summary: A collection of Python utility APIs
|
|
5
5
|
Author: Davide Libenzi
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -34,3 +34,17 @@ Dynamic: summary
|
|
|
34
34
|
I keep writing the same stuff in different projects, so I finally decided
|
|
35
35
|
to throw stuff into a common boilerplate and stop the cut&paste jobs.
|
|
36
36
|
|
|
37
|
+
## Install
|
|
38
|
+
|
|
39
|
+
The library can be installed using *PyPi*:
|
|
40
|
+
|
|
41
|
+
```Shell
|
|
42
|
+
$ pip install python-misc-utils
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Or directly from the *Github* repository:
|
|
46
|
+
|
|
47
|
+
```Shell
|
|
48
|
+
$ pip install git+https://github.com/davidel/py_misc_utils.git
|
|
49
|
+
```
|
|
50
|
+
|
python_misc_utils-0.2/README.md
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_misc_utils-0.2 → python_misc_utils-0.21}/python_misc_utils.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|