DMF's Python package providing reusable functionalities for neuroscience research.
Project description
DMF Utils
DMF Utils is a Python package that provides a collection of utility functionalities to simplify common tasks in experiment and data analysis workflows. The package contains modules used by our group to facilitate tasks in neuroscience and artificial intelligence research.
Quick Start
This package is designed in a modular way, with some functionalities included in this repository and others in separate packages that can be called from here. This allows for installing only the components needed for a specific project, aiming to maintain the broadest compatibility with different Python versions.
You can install all modules with pip or other package managers by running:
pip install dmf-utils[all]
See the documentation for more installation options and help, including how to use it in environments without internet access.
Modules
- Alerts: Get notified when a function finishes running and send messages or files to Slack and Telegram.
Alerts
Send messages or files to Slack and Telegram, and get notified when a function finishes running.
pip install dmf-utils[alerts]
from dmf.alerts import alert
@alert
def my_function(name):
sleep(5)
return f"Hello, {name}!"
my_function("World")
Or as a command-line tool:
./my_function > output.txt
dmf-alert "Execution finished" -a output.txt
See the documentation for more information on how to set up the messaging service and additional functionalities.
Documentation
For full documentation, visit Read the Docs.
Contributing
This package is maintained by the Dynamics of Memory Formation (DMF) Group at the University of Barcelona. We welcome contributions from the community. If you would like to contribute, please open an issue or a pull request.
License
DMF Utils is licensed under the MIT License. See the LICENSE file for more details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for dmf_utils-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab928497b5908d169feb28c28d72b51646962e5ead60c29e54d300080772c4f4 |
|
MD5 | 671627e54cac5eab442d97858df11c2b |
|
BLAKE2b-256 | 4e5044735779b89b27c63d4e283a5f1244fc5ad0263b8e5385dd26820664e213 |