rolling-pin 0.10.1__py3-none-any.whl → 0.11.1__py3-none-any.whl

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.
@@ -8,6 +8,7 @@ import re
8
8
 
9
9
  from lunchbox.enforce import Enforce
10
10
  from pandas import DataFrame
11
+ import lunchbox.tools as lbt
11
12
  import yaml
12
13
 
13
14
  from rolling_pin.blob_etl import BlobETL
@@ -268,7 +269,9 @@ class ConformETL:
268
269
  data.apply(lambda x: rpt.copy_file(x.source, x.target), axis=1)
269
270
 
270
271
  # copy lines
271
- data['text'] = data.source.apply(rpt.read_text)
272
+ data['text'] = data.source.apply(lambda x: lbt.try_(rpt.read_text, x, 'error'))
273
+ readable_mask = data.text.apply(lambda x: isinstance(x, str))
274
+ data.loc[~readable_mask, 'text'] = ''
272
275
  rules = list(filter(lambda x: x['group'] in groups, self._line_rules))
273
276
  for rule in rules:
274
277
  mask = data.groups.apply(lambda x: rule['group'] in x)
@@ -281,4 +284,4 @@ class ConformETL:
281
284
  replace_value=rule.get('replace', None),
282
285
  )
283
286
  )
284
- data.apply(lambda x: rpt.write_text(x.text, x.target), axis=1)
287
+ data[readable_mask].apply(lambda x: rpt.write_text(x.text, x.target), axis=1)
@@ -1,18 +1,19 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rolling-pin
3
- Version: 0.10.1
3
+ Version: 0.11.1
4
4
  Summary: A library of generic tools for ETL work and visualization of JSON blobs and python repositories
5
5
  License: MIT
6
6
  Keywords: ETL,blob,dependency,graph,svg,networkx,transform,code metrics,dependency diagram,build system
7
7
  Author-email: Alex Braun <alexander.g.braun@gmail.com>
8
- Requires-Python: >=3.8
8
+ Requires-Python: >=3.10
9
9
  Classifier: Development Status :: 4 - Beta
10
10
  Classifier: Intended Audience :: Developers
11
11
  Classifier: License :: OSI Approved :: MIT License
12
12
  Classifier: Programming Language :: Python :: 3
13
13
  Classifier: Programming Language :: Python :: 3.10
14
- Classifier: Programming Language :: Python :: 3.8
15
- Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
16
17
  Classifier: Typing :: Typed
17
18
  Requires-Dist: click>=8.1.3
18
19
  Requires-Dist: graphviz
@@ -53,7 +54,7 @@ Description-Content-Type: text/markdown
53
54
  alt="vimeo" width="30px" height="30px"
54
55
  >
55
56
  </a>
56
- <a href="http://www.alexgbraun.com" rel="nofollow noreferrer">
57
+ <a href="https://alexgbraun.com" rel="nofollow noreferrer">
57
58
  <img src="https://i.ibb.co/fvyMkpM/logo.png"
58
59
  alt="alexgbraun" width="30px" height="30px"
59
60
  >
@@ -67,6 +68,8 @@ Description-Content-Type: text/markdown
67
68
  [![](https://img.shields.io/pypi/v/rolling-pin?style=for-the-badge&label=PyPI&color=5F95DE&logo=pypi&logoColor=5F95DE)](https://pypi.org/project/rolling-pin/)
68
69
  [![](https://img.shields.io/pypi/dm/rolling-pin?style=for-the-badge&label=Downloads&color=5F95DE)](https://pepy.tech/project/rolling-pin)
69
70
 
71
+ <!-- <img id="logo" src="sphinx/images/logo.png" style="max-width: 717px"> -->
72
+
70
73
  # Introduction
71
74
  Rolling-pin is a library of generic tools for ETL work and visualization of JSON
72
75
  blobs and python repositories
@@ -125,7 +128,7 @@ Run `bin/rolling-pin --help` for more help on the command line tool.
125
128
 
126
129
  ### Docker
127
130
  1. Install [docker-desktop](https://docs.docker.com/desktop/)
128
- 2. `docker pull theNewFlesh/rolling-pin:[version]`
131
+ 2. `docker pull theNewFlesh/rolling-pin:[mode]-[version]`
129
132
 
130
133
 
131
134
  ---
@@ -196,67 +199,70 @@ Its usage pattern is: `bin/rolling-pin COMMAND [-a --args]=ARGS [-h --help] [--d
196
199
  ### Commands
197
200
  The following is a complete list of all available development commands:
198
201
 
199
- | Command | Description |
200
- | ----------------------- | ------------------------------------------------------------------- |
201
- | build-package | Build production version of repo for publishing |
202
- | build-prod | Publish pip package of repo to PyPi |
203
- | build-publish | Run production tests first then publish pip package of repo to PyPi |
204
- | build-test | Build test version of repo for prod testing |
205
- | docker-build | Build Docker image |
206
- | docker-build-from-cache | Build Docker image from cached image |
207
- | docker-build-prod | Build production image |
208
- | docker-container | Display the Docker container id |
209
- | docker-destroy | Shutdown container and destroy its image |
210
- | docker-destroy-prod | Shutdown production container and destroy its image |
211
- | docker-image | Display the Docker image id |
212
- | docker-prod | Start production container |
213
- | docker-pull-dev | Pull development image from Docker registry |
214
- | docker-pull-prod | Pull production image from Docker registry |
215
- | docker-push-dev | Push development image to Docker registry |
216
- | docker-push-dev-latest | Push development image to Docker registry with dev-latest tag |
217
- | docker-push-prod | Push production image to Docker registry |
218
- | docker-push-prod-latest | Push production image to Docker registry with prod-latest tag |
219
- | docker-remove | Remove Docker image |
220
- | docker-restart | Restart Docker container |
221
- | docker-start | Start Docker container |
222
- | docker-stop | Stop Docker container |
223
- | docs | Generate sphinx documentation |
224
- | docs-architecture | Generate architecture.svg diagram from all import statements |
225
- | docs-full | Generate documentation, coverage report, diagram and code |
226
- | docs-metrics | Generate code metrics report, plots and tables |
227
- | library-add | Add a given package to a given dependency group |
228
- | library-graph-dev | Graph dependencies in dev environment |
229
- | library-graph-prod | Graph dependencies in prod environment |
230
- | library-install-dev | Install all dependencies into dev environment |
231
- | library-install-prod | Install all dependencies into prod environment |
232
- | library-list-dev | List packages in dev environment |
233
- | library-list-prod | List packages in prod environment |
234
- | library-lock-dev | Resolve dev.lock file |
235
- | library-lock-prod | Resolve prod.lock file |
236
- | library-remove | Remove a given package from a given dependency group |
237
- | library-search | Search for pip packages |
238
- | library-sync-dev | Sync dev environment with packages listed in dev.lock |
239
- | library-sync-prod | Sync prod environment with packages listed in prod.lock |
240
- | library-update | Update dev dependencies |
241
- | library-update-pdm | Update PDM |
242
- | quickstart | Display quickstart guide |
243
- | session-lab | Run jupyter lab server |
244
- | session-python | Run python session with dev dependencies |
245
- | session-server | Runn application server inside Docker container |
246
- | state | State of repository and Docker container |
247
- | test-coverage | Generate test coverage report |
248
- | test-dev | Run all tests |
249
- | test-fast | Test all code excepts tests marked with SKIP_SLOWS_TESTS decorator |
250
- | test-lint | Run linting and type checking |
251
- | test-prod | Run tests across all support python versions |
252
- | version | Full resolution of repo: dependencies, linting, tests, docs, etc |
253
- | version-bump-major | Bump pyproject major version |
254
- | version-bump-minor | Bump pyproject minor version |
255
- | version-bump-patch | Bump pyproject patch version |
256
- | version-commit | Tag with version and commit changes to master |
257
- | zsh | Run ZSH session inside Docker container |
258
- | zsh-complete | Generate oh-my-zsh completions |
259
- | zsh-root | Run ZSH session as root inside Docker container |
202
+ | Command | Description |
203
+ | -------------------------- | ------------------------------------------------------------------- |
204
+ | build-edit-prod-dockerfile | Edit prod.dockefile to use local package |
205
+ | build-local-package | Generate local pip package in docker/dist |
206
+ | build-package | Build production version of repo for publishing |
207
+ | build-prod | Publish pip package of repo to PyPi |
208
+ | build-publish | Run production tests first then publish pip package of repo to PyPi |
209
+ | build-test | Build test version of repo for prod testing |
210
+ | docker-build | Build development image |
211
+ | docker-build-from-cache | Build development image from registry cache |
212
+ | docker-build-no-cache | Build development image without cache |
213
+ | docker-build-prod | Build production image |
214
+ | docker-build-prod-no-cache | Build production image without cache |
215
+ | docker-container | Display the Docker container id |
216
+ | docker-destroy | Shutdown container and destroy its image |
217
+ | docker-destroy-prod | Shutdown production container and destroy its image |
218
+ | docker-image | Display the Docker image id |
219
+ | docker-prod | Start production container |
220
+ | docker-pull-dev | Pull development image from Docker registry |
221
+ | docker-pull-prod | Pull production image from Docker registry |
222
+ | docker-push-dev | Push development image to Docker registry |
223
+ | docker-push-dev-latest | Push development image to Docker registry with dev-latest tag |
224
+ | docker-push-prod | Push production image to Docker registry |
225
+ | docker-push-prod-latest | Push production image to Docker registry with prod-latest tag |
226
+ | docker-remove | Remove Docker image |
227
+ | docker-restart | Restart container |
228
+ | docker-start | Start container |
229
+ | docker-stop | Stop container |
230
+ | docs | Generate sphinx documentation |
231
+ | docs-architecture | Generate architecture.svg diagram from all import statements |
232
+ | docs-full | Generate documentation, coverage report, diagram and code |
233
+ | docs-metrics | Generate code metrics report, plots and tables |
234
+ | library-add | Add a given package to a given dependency group |
235
+ | library-graph-dev | Graph dependencies in dev environment |
236
+ | library-graph-prod | Graph dependencies in prod environment |
237
+ | library-install-dev | Install all dependencies into dev environment |
238
+ | library-install-prod | Install all dependencies into prod environment |
239
+ | library-list-dev | List packages in dev environment |
240
+ | library-list-prod | List packages in prod environment |
241
+ | library-lock-dev | Resolve dev.lock file |
242
+ | library-lock-prod | Resolve prod.lock file |
243
+ | library-remove | Remove a given package from a given dependency group |
244
+ | library-search | Search for pip packages |
245
+ | library-sync-dev | Sync dev environment with packages listed in dev.lock |
246
+ | library-sync-prod | Sync prod environment with packages listed in prod.lock |
247
+ | library-update | Update dev dependencies |
248
+ | library-update-pdm | Update PDM |
249
+ | quickstart | Display quickstart guide |
250
+ | session-lab | Run jupyter lab server |
251
+ | session-python | Run python session with dev dependencies |
252
+ | state | State of repository and Docker container |
253
+ | test-coverage | Generate test coverage report |
254
+ | test-dev | Run all tests |
255
+ | test-fast | Test all code excepts tests marked with SKIP_SLOWS_TESTS decorator |
256
+ | test-lint | Run linting and type checking |
257
+ | test-prod | Run tests across all support python versions |
258
+ | version | Full resolution of repo: dependencies, linting, tests, docs, etc |
259
+ | version-bump-major | Bump pyproject major version |
260
+ | version-bump-minor | Bump pyproject minor version |
261
+ | version-bump-patch | Bump pyproject patch version |
262
+ | version-commit | Tag with version and commit changes to master |
263
+ | zsh | Run ZSH session inside Docker container |
264
+ | zsh-complete | Generate oh-my-zsh completions |
265
+ | zsh-root | Run ZSH session as root inside Docker container |
260
266
 
261
267
  ### Flags
262
268
 
@@ -2,14 +2,14 @@ rolling_pin/__init__.py,sha256=R_g0FYses--dTmvbZLtFFI-FPn4og6p8zmkEesYmN1A,511
2
2
  rolling_pin/blob_etl.py,sha256=79eEeCZwPeJ8XwMlLp9-MywDwC-HlqMK-MJhksLrPdU,20712
3
3
  rolling_pin/command.py,sha256=xaM3Zp516sS2iF8RWb6qwGpc_IYmIkwtzJ2vDK9zPZo,6477
4
4
  rolling_pin/conform_config.py,sha256=W-Ps6FPuZ7SOxFOfEjIo2MZac1vCRuVky6samSZPQkw,2630
5
- rolling_pin/conform_etl.py,sha256=VyHAKVvdOtjx6Fy8dWn6XMfNh9OFgBbidyDUnSl3Zl4,9594
5
+ rolling_pin/conform_etl.py,sha256=uWYg8yw6kilatdvt7qt_0AaQl0UsVFUC-IaIXMoDezA,9786
6
6
  rolling_pin/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  rolling_pin/radon_etl.py,sha256=0rxFSnv2z41vKFe35XqCHSnnjT9qNNjouaCcIYkcHgI,18252
8
8
  rolling_pin/repo_etl.py,sha256=Q6W-_4hTNh3nj5o9eTz5d7HuH5Kf9Uew8W9UD52dCJ0,21041
9
9
  rolling_pin/toml_etl.py,sha256=fyioQTfqFW1e15qZ8F64sX379V5JzNlBKBuC5IPIgIo,4350
10
10
  rolling_pin/tools.py,sha256=bLZGXDg5DuV59RxiVjLIwTAr83X5nMBElvR7w0mEnx8,19179
11
- rolling_pin-0.10.1.dist-info/entry_points.txt,sha256=nbMiJnGLhp49xrtx1pjK8sJiBrwkpj2kq-ezp8Zfyyk,56
12
- rolling_pin-0.10.1.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
13
- rolling_pin-0.10.1.dist-info/METADATA,sha256=B7s0WHFa3vdPUKujCpbyGuA45FAmlphifDzmRDonhSM,20054
14
- rolling_pin-0.10.1.dist-info/licenses/LICENSE,sha256=Z61vsRc9ZyRu0Tm3TkYgIeKDjUJCR3dT0hJonw9Q3i4,1067
15
- rolling_pin-0.10.1.dist-info/RECORD,,
11
+ rolling_pin-0.11.1.dist-info/entry_points.txt,sha256=nbMiJnGLhp49xrtx1pjK8sJiBrwkpj2kq-ezp8Zfyyk,56
12
+ rolling_pin-0.11.1.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
13
+ rolling_pin-0.11.1.dist-info/METADATA,sha256=JlogGX5mw9klf4_W01f8wClLSndq92FdkswWpTlGw04,20678
14
+ rolling_pin-0.11.1.dist-info/licenses/LICENSE,sha256=Z61vsRc9ZyRu0Tm3TkYgIeKDjUJCR3dT0hJonw9Q3i4,1067
15
+ rolling_pin-0.11.1.dist-info/RECORD,,