Skip to main content

DMF's Python package providing reusable functionalities for neuroscience research.

Project description

DMF Utils

Python Versions Documentation Status License

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

dmf_utils-0.1.0.tar.gz (13.0 kB view hashes)

Uploaded Source

Built Distribution

dmf_utils-0.1.0-py3-none-any.whl (15.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page