fpathlib 0.1.6__tar.gz → 0.1.7__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.
- {fpathlib-0.1.6/src/fpathlib.egg-info → fpathlib-0.1.7}/PKG-INFO +1 -1
- {fpathlib-0.1.6 → fpathlib-0.1.7}/conda-recipe/meta.yaml +2 -2
- {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib/_version.py +3 -3
- {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib/ext/polars.py +10 -2
- {fpathlib-0.1.6 → fpathlib-0.1.7/src/fpathlib.egg-info}/PKG-INFO +1 -1
- fpathlib-0.1.7/src/fpathlib.egg-info/scm_version.json +8 -0
- fpathlib-0.1.6/src/fpathlib.egg-info/scm_version.json +0 -8
- {fpathlib-0.1.6 → fpathlib-0.1.7}/.gitignore +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/LICENSE +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/MANIFEST.in +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/README.md +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/TODO.txt +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/docs/Makefile +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/docs/make.bat +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/docs/source/api.rst +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/docs/source/conf.py +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/docs/source/index.rst +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/pyproject.toml +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/scripts/conda.sh +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/scripts/deploy.sh +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/scripts/docs.sh +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/scripts/pypi.sh +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/scripts/tag.sh +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/setup.cfg +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib/__init__.py +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib/expand.py +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib/ext/__init__.py +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib/fpath.py +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib/path.py +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib/utils.py +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib.egg-info/SOURCES.txt +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib.egg-info/dependency_links.txt +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib.egg-info/requires.txt +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib.egg-info/scm_file_list.json +0 -0
- {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib.egg-info/top_level.txt +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{% set name = "fpathlib" %}
|
|
2
|
-
{% set version = "0.1.
|
|
2
|
+
{% set version = "0.1.6" %}
|
|
3
3
|
|
|
4
4
|
package:
|
|
5
5
|
name: {{ name|lower }}
|
|
@@ -7,7 +7,7 @@ package:
|
|
|
7
7
|
|
|
8
8
|
source:
|
|
9
9
|
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/fpathlib-{{ version }}.tar.gz
|
|
10
|
-
sha256:
|
|
10
|
+
sha256: a7a3b1d99483a33a81db47de608a6e791a5afa155d062a5914fd9eee98878da1
|
|
11
11
|
|
|
12
12
|
build:
|
|
13
13
|
noarch: python
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '0.1.
|
|
22
|
-
__version_tuple__ = version_tuple = (0, 1,
|
|
21
|
+
__version__ = version = '0.1.7'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 1, 7)
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'g6fb0fd96d'
|
|
@@ -91,7 +91,8 @@ def read_csv(source, *args, **kwargs):
|
|
|
91
91
|
def read_txt(
|
|
92
92
|
source,
|
|
93
93
|
line_filter=None,
|
|
94
|
-
separator=
|
|
94
|
+
separator=r"\s+",
|
|
95
|
+
strip_initial_spaces=True,
|
|
95
96
|
new_columns=None,
|
|
96
97
|
has_header=False,
|
|
97
98
|
*args,
|
|
@@ -136,6 +137,7 @@ def read_txt(
|
|
|
136
137
|
source,
|
|
137
138
|
line_filter=line_filter,
|
|
138
139
|
separator=separator,
|
|
140
|
+
strip_initial_spaces=strip_initial_spaces,
|
|
139
141
|
new_columns=new_columns,
|
|
140
142
|
has_header=has_header,
|
|
141
143
|
*args,
|
|
@@ -221,7 +223,8 @@ def scan_parquet(source, include_file_paths=None, *args, **kwargs):
|
|
|
221
223
|
def scan_txt(
|
|
222
224
|
source,
|
|
223
225
|
line_filter=None,
|
|
224
|
-
separator=
|
|
226
|
+
separator=r"\s+",
|
|
227
|
+
strip_initial_spaces=True,
|
|
225
228
|
new_columns=None,
|
|
226
229
|
has_header=False,
|
|
227
230
|
include_line=None,
|
|
@@ -309,6 +312,10 @@ def scan_txt(
|
|
|
309
312
|
**kwargs,
|
|
310
313
|
)
|
|
311
314
|
|
|
315
|
+
# Strip leading whitespace from each line if requested.
|
|
316
|
+
if strip_initial_spaces:
|
|
317
|
+
lf = lf.with_columns(_polars.col("_line").str.strip_chars_start())
|
|
318
|
+
|
|
312
319
|
# Can filter lines before doing any further processing
|
|
313
320
|
# This could be to remove lines with comments, etc.
|
|
314
321
|
if line_filter is not None:
|
|
@@ -343,6 +350,7 @@ def scan_txt(
|
|
|
343
350
|
source[0],
|
|
344
351
|
line_filter=line_filter,
|
|
345
352
|
separator=separator,
|
|
353
|
+
strip_initial_spaces=strip_initial_spaces,
|
|
346
354
|
new_columns=new_columns,
|
|
347
355
|
has_header=has_header,
|
|
348
356
|
usecols=usecols,
|
|
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
|