- Notifications
You must be signed in to change notification settings - Fork286
Python supercharged for the fastai library
License
AnswerDotAI/fastcore
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Python is a powerful, dynamic language. Rather than bake everything intothe language, it lets the programmer customize it to make it work forthem.fastcore uses this flexibility to add to Python featuresinspired by other languages we’ve loved, mixins from Ruby, and currying,binding, and more from Haskell. It also adds some “missing features” andclean up some rough edges in the Python standard library, such assimplifying parallel processing, and bringing ideas from NumPy over toPython’slist type.
To install fastcore run:conda install fastcore -c fastai (if you useAnaconda, which we recommend) orpip install fastcore. For aneditableinstall,clone this repo and run:pip install -e ".[dev]". fastcore is testedto work on Ubuntu, macOS and Windows (versions tested are those shownwith the-latest suffixhere).
fastcore contains many features, including:
fastcore.test: Simple testing functionsfastcore.foundation: Mixins, delegation, composition, and morefastcore.xtras: Utility functions to help with functional-styleprogramming, parallel processing, and more
To get started, we recommend you read throughthe fastcoretour.
After you clone this repository, please runnbdev_install_hooks inyour terminal. This sets up git hooks, which clean up the notebooks toremove the extraneous stuff stored in the notebooks (e.g. which cellsyou ran) which causes unnecessary merge conflicts.
To run the tests in parallel, launchnbdev_test.
Before submitting a PR, check that the local library and notebooksmatch.
- If you made a change to the notebooks in one of the exported cells,you can export it to the library with
nbdev_prepare. - If you made a change to the library, you can export it back to thenotebooks with
nbdev_update.
About
Python supercharged for the fastai library
Topics
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.