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.
Files changed (35) hide show
  1. {fpathlib-0.1.6/src/fpathlib.egg-info → fpathlib-0.1.7}/PKG-INFO +1 -1
  2. {fpathlib-0.1.6 → fpathlib-0.1.7}/conda-recipe/meta.yaml +2 -2
  3. {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib/_version.py +3 -3
  4. {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib/ext/polars.py +10 -2
  5. {fpathlib-0.1.6 → fpathlib-0.1.7/src/fpathlib.egg-info}/PKG-INFO +1 -1
  6. fpathlib-0.1.7/src/fpathlib.egg-info/scm_version.json +8 -0
  7. fpathlib-0.1.6/src/fpathlib.egg-info/scm_version.json +0 -8
  8. {fpathlib-0.1.6 → fpathlib-0.1.7}/.gitignore +0 -0
  9. {fpathlib-0.1.6 → fpathlib-0.1.7}/LICENSE +0 -0
  10. {fpathlib-0.1.6 → fpathlib-0.1.7}/MANIFEST.in +0 -0
  11. {fpathlib-0.1.6 → fpathlib-0.1.7}/README.md +0 -0
  12. {fpathlib-0.1.6 → fpathlib-0.1.7}/TODO.txt +0 -0
  13. {fpathlib-0.1.6 → fpathlib-0.1.7}/docs/Makefile +0 -0
  14. {fpathlib-0.1.6 → fpathlib-0.1.7}/docs/make.bat +0 -0
  15. {fpathlib-0.1.6 → fpathlib-0.1.7}/docs/source/api.rst +0 -0
  16. {fpathlib-0.1.6 → fpathlib-0.1.7}/docs/source/conf.py +0 -0
  17. {fpathlib-0.1.6 → fpathlib-0.1.7}/docs/source/index.rst +0 -0
  18. {fpathlib-0.1.6 → fpathlib-0.1.7}/pyproject.toml +0 -0
  19. {fpathlib-0.1.6 → fpathlib-0.1.7}/scripts/conda.sh +0 -0
  20. {fpathlib-0.1.6 → fpathlib-0.1.7}/scripts/deploy.sh +0 -0
  21. {fpathlib-0.1.6 → fpathlib-0.1.7}/scripts/docs.sh +0 -0
  22. {fpathlib-0.1.6 → fpathlib-0.1.7}/scripts/pypi.sh +0 -0
  23. {fpathlib-0.1.6 → fpathlib-0.1.7}/scripts/tag.sh +0 -0
  24. {fpathlib-0.1.6 → fpathlib-0.1.7}/setup.cfg +0 -0
  25. {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib/__init__.py +0 -0
  26. {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib/expand.py +0 -0
  27. {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib/ext/__init__.py +0 -0
  28. {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib/fpath.py +0 -0
  29. {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib/path.py +0 -0
  30. {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib/utils.py +0 -0
  31. {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib.egg-info/SOURCES.txt +0 -0
  32. {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib.egg-info/dependency_links.txt +0 -0
  33. {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib.egg-info/requires.txt +0 -0
  34. {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib.egg-info/scm_file_list.json +0 -0
  35. {fpathlib-0.1.6 → fpathlib-0.1.7}/src/fpathlib.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fpathlib
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: A package to combine paths with metadata
5
5
  Author-email: "C. Lockhart" <clockha2@gmu.edu>
6
6
  Requires-Python: >=3.12
@@ -1,5 +1,5 @@
1
1
  {% set name = "fpathlib" %}
2
- {% set version = "0.1.5" %}
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: 083299d5a41577484af5a8447d185a6ab1c190b2dfe31690375349c163ea61ab
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.6'
22
- __version_tuple__ = version_tuple = (0, 1, 6)
21
+ __version__ = version = '0.1.7'
22
+ __version_tuple__ = version_tuple = (0, 1, 7)
23
23
 
24
- __commit_id__ = commit_id = 'g5162f8cd0'
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=None,
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=None,
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,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fpathlib
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: A package to combine paths with metadata
5
5
  Author-email: "C. Lockhart" <clockha2@gmu.edu>
6
6
  Requires-Python: >=3.12
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "0.1.7",
3
+ "distance": 0,
4
+ "node": "g6fb0fd96d4a8743d6b3c15b956553e52d9bd391f",
5
+ "dirty": false,
6
+ "branch": "main",
7
+ "node_date": "2026-09-24"
8
+ }
@@ -1,8 +0,0 @@
1
- {
2
- "tag": "0.1.6",
3
- "distance": 0,
4
- "node": "g5162f8cd0811db2b8291cbf05ff5ad278451dc81",
5
- "dirty": false,
6
- "branch": "main",
7
- "node_date": "2026-09-21"
8
- }
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