fastcore 2.2.27__tar.gz → 2.2.28__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.
- {fastcore-2.2.27/fastcore.egg-info → fastcore-2.2.28}/PKG-INFO +3 -1
- {fastcore-2.2.27 → fastcore-2.2.28}/README.md +2 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/__init__.py +1 -1
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/xtras.py +7 -2
- {fastcore-2.2.27 → fastcore-2.2.28/fastcore.egg-info}/PKG-INFO +3 -1
- {fastcore-2.2.27 → fastcore-2.2.28}/CONTRIBUTING.md +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/LICENSE +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/_modidx.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/aio.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/all.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/ansi.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/apisurface.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/basics.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/dispatch.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/docments.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/docscrape.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/editskill.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/foundation.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/funccall.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/imghdr.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/imports.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/meta.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/nb_imports.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/nbio.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/net.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/parallel.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/py2pyi.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/script.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/shutil.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/style.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/test.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/tools.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/transform.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/utils.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/xdg.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore/xml.py +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore.egg-info/SOURCES.txt +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore.egg-info/dependency_links.txt +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore.egg-info/entry_points.txt +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore.egg-info/requires.txt +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/fastcore.egg-info/top_level.txt +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/pyproject.toml +0 -0
- {fastcore-2.2.27 → fastcore-2.2.28}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fastcore
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.28
|
|
4
4
|
Summary: Python supercharged for fastai development
|
|
5
5
|
Author-email: Jeremy Howard and Sylvain Gugger <infos@fast.ai>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -88,6 +88,8 @@ To install fastcore run: `conda install fastcore -c fastai` (if you use Anaconda
|
|
|
88
88
|
|
|
89
89
|
To get started, we recommend you read through [the fastcore tour](https://fastcore.fast.ai/tour.html).
|
|
90
90
|
|
|
91
|
+
[`globtastic`](https://fastcore.fast.ai/xtras.html#globtastic) supports filename filters (`file_glob`, `file_re`) and full-path filters (`path_glob`, `path_re`). Glob filters use `fnmatch`: `*` matches directory separators and `**` has no special meaning.
|
|
92
|
+
|
|
91
93
|
## Contributing
|
|
92
94
|
|
|
93
95
|
After you clone this repository, please run `nbdev_install_hooks` in your terminal. This sets up git hooks, which clean up the notebooks to remove the extraneous stuff stored in the notebooks (e.g. which cells you ran) which causes unnecessary merge conflicts.
|
|
@@ -57,6 +57,8 @@ To install fastcore run: `conda install fastcore -c fastai` (if you use Anaconda
|
|
|
57
57
|
|
|
58
58
|
To get started, we recommend you read through [the fastcore tour](https://fastcore.fast.ai/tour.html).
|
|
59
59
|
|
|
60
|
+
[`globtastic`](https://fastcore.fast.ai/xtras.html#globtastic) supports filename filters (`file_glob`, `file_re`) and full-path filters (`path_glob`, `path_re`). Glob filters use `fnmatch`: `*` matches directory separators and `**` has no special meaning.
|
|
61
|
+
|
|
60
62
|
## Contributing
|
|
61
63
|
|
|
62
64
|
After you clone this repository, please run `nbdev_install_hooks` in your terminal. This sets up git hooks, which clean up the notebooks to remove the extraneous stuff stored in the notebooks (e.g. which cells you ran) which causes unnecessary merge conflicts.
|
|
@@ -138,6 +138,8 @@ def globtastic(
|
|
|
138
138
|
symlinks:bool=True, # follow symlinks?
|
|
139
139
|
file_glob:str=None, # Only include files matching glob
|
|
140
140
|
file_re:str=None, # Only include files matching regex
|
|
141
|
+
path_glob:str=None, # Only include files whose full paths match glob (wildcards match separators)
|
|
142
|
+
path_re:str=None, # Only include files whose full paths match regex
|
|
141
143
|
folder_re:str=None, # Only enter folders matching regex
|
|
142
144
|
skip_file_glob:str=None, # Skip files matching glob
|
|
143
145
|
skip_file_re:str=None, # Skip files matching regex
|
|
@@ -158,10 +160,13 @@ def globtastic(
|
|
|
158
160
|
if exts:
|
|
159
161
|
exts = [e if e.startswith('.') else f'.{e}' for e in listify(exts)]
|
|
160
162
|
file_re = f"({'|'.join(re.escape(e) for e in exts)})$"
|
|
161
|
-
file_re,folder_re = compile_re(file_re),compile_re(folder_re)
|
|
163
|
+
file_re,folder_re,path_re = compile_re(file_re),compile_re(folder_re),compile_re(path_re)
|
|
162
164
|
skip_file_re,skip_folder_re = compile_re(skip_file_re),compile_re(skip_folder_re)
|
|
163
165
|
def _keep_file(root, name):
|
|
164
|
-
|
|
166
|
+
fname = os.path.join(root,name)
|
|
167
|
+
return (not path_glob or fnmatch(fname, path_glob)) and (
|
|
168
|
+
not path_re or path_re.search(fname)) and (
|
|
169
|
+
not file_glob or fnmatch(name, file_glob)) and (
|
|
165
170
|
not file_re or file_re.search(name)) and (
|
|
166
171
|
not skip_file_glob or not fnmatch(name, skip_file_glob)) and (
|
|
167
172
|
not skip_file_re or not skip_file_re.search(name))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fastcore
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.28
|
|
4
4
|
Summary: Python supercharged for fastai development
|
|
5
5
|
Author-email: Jeremy Howard and Sylvain Gugger <infos@fast.ai>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -88,6 +88,8 @@ To install fastcore run: `conda install fastcore -c fastai` (if you use Anaconda
|
|
|
88
88
|
|
|
89
89
|
To get started, we recommend you read through [the fastcore tour](https://fastcore.fast.ai/tour.html).
|
|
90
90
|
|
|
91
|
+
[`globtastic`](https://fastcore.fast.ai/xtras.html#globtastic) supports filename filters (`file_glob`, `file_re`) and full-path filters (`path_glob`, `path_re`). Glob filters use `fnmatch`: `*` matches directory separators and `**` has no special meaning.
|
|
92
|
+
|
|
91
93
|
## Contributing
|
|
92
94
|
|
|
93
95
|
After you clone this repository, please run `nbdev_install_hooks` in your terminal. This sets up git hooks, which clean up the notebooks to remove the extraneous stuff stored in the notebooks (e.g. which cells you ran) which causes unnecessary merge conflicts.
|
|
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
|