Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nx10 committed Jul 18, 2024
1 parent 4e712fd commit b74b40b
Show file tree
Hide file tree
Showing 15 changed files with 96 additions and 383 deletions.
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ representative at an online or offline event.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
ENTER_YOUR_EMAIL_ADDRESS.
[email protected].

All complaints will be reviewed and investigated promptly and fairly.

Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# template-python-repository pull request guidelines
# styxgraph pull request guidelines

Pull requests are always welcome, and we appreciate any help you give. Note that a code of conduct applies to all spaces managed by the template-python-repository project, including issues and pull requests. Please see the [Code of Conduct](CODE_OF_CONDUCT.md) for details.
Pull requests are always welcome, and we appreciate any help you give. Note that a code of conduct applies to all spaces managed by the styxgraph project, including issues and pull requests. Please see the [Code of Conduct](CODE_OF_CONDUCT.md) for details.

When submitting a pull request, we ask you to check the following:

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Child Mind Institute
Copyright (c) 2024 Child Mind Institute

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
64 changes: 14 additions & 50 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,60 +1,24 @@
[![DOI](https://zenodo.org/badge/657341621.svg)](https://zenodo.org/doi/10.5281/zenodo.10383685)

# CMI-DAIR Template Python Repository

Welcome to the CMI-DAIR Template Python Repository! This template is designed to streamline your project setup and ensure a consistent structure. To get started, follow these steps:


- [ ] Run `setup_template.py` to initialize the repository.
- [ ] Replace the content of this `README.md` with details specific to your project.
- [ ] Install the `pre-commit` hooks to ensure code quality on each commit.
- [ ] Revise SECURITY.md to reflect supported versions or remove it if not applicable.
- [ ] Remove the placeholder src and test files, these are there merely to show how the CI works.
- [ ] If it hasn't already been done for your organization/acccount, grant third-party app permissions for CodeCov.
- [ ] To set up an API documentation website, after the first successful build, go to the `Settings` tab of your repository, scroll down to the `GitHub Pages` section, and select `gh-pages` as the source. This will generate a link to your API docs.
- [ ] Update stability badge in `README.md` to reflect the current state of the project. A list of stability badges to copy can be found [here](https://github.com/orangemug/stability-badges). The [node documentation](https://nodejs.org/docs/latest-v20.x/api/documentation.html#documentation_stability_index) can be used as a reference for the stability levels.

# Project name

[![Build](https://github.com/childmindresearch/template-python-repository/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/childmindresearch/template-python-repository/actions/workflows/test.yaml?query=branch%3Amain)
[![codecov](https://codecov.io/gh/childmindresearch/template-python-repository/branch/main/graph/badge.svg?token=22HWWFWPW5)](https://codecov.io/gh/childmindresearch/template-python-repository)
[![Build](https://github.com/childmindresearch/styxgraph/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/childmindresearch/styxgraph/actions/workflows/test.yaml?query=branch%3Amain)
[![codecov](https://codecov.io/gh/childmindresearch/styxgraph/branch/main/graph/badge.svg?token=22HWWFWPW5)](https://codecov.io/gh/childmindresearch/styxgraph)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
![stability-stable](https://img.shields.io/badge/stability-stable-green.svg)
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/childmindresearch/template-python-repository/blob/main/LICENSE)
[![pages](https://img.shields.io/badge/api-docs-blue)](https://childmindresearch.github.io/template-python-repository)

What problem does this tool solve?

## Features

- A few
- Cool
- Things
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/childmindresearch/styxgraph/blob/main/LICENSE)
[![pages](https://img.shields.io/badge/api-docs-blue)](https://childmindresearch.github.io/styxgraph)

## Installation

Install this package via :

```sh
pip install APP_NAME
```

Or get the newest development version via:

```sh
pip install git+https://github.com/childmindresearch/template-python-repository
```

## Quick start

Short tutorial, maybe with a
## Usage

```Python
import APP_NAME
from styxdefs import set_global_runner, get_global_runner
from styxgraph import GraphRunner

set_global_runner(DockerRunner()) # (Optional) Use any Styx runner like usual
set_global_runner(GraphRunner(get_global_runner())) # Use GraphRunner middleware

APP_NAME.short_example()
```
# Use any Styx functions as usual
# ...

## Links or References
print(get_global_runner().mermaid()) # Print mermaid diagram

- [https://www.wikipedia.de](https://www.wikipedia.de)
```
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ Note which version(s) will receive security updates. For example:

## Reporting Vulnerabilities

To report security vulnerabilities, please do NOT use our issues page. Instead, kindly email us at ENTER_YOUR_EMAIL_ADDRESS. Please refrain from using other communication channels.
To report security vulnerabilities, please do NOT use our issues page. Instead, kindly email us at [email protected]. Please refrain from using other communication channels.

For non-security-related issues, we welcome your input and feedback on our issues page. Feel free to share your ideas and suggestions to help us improve our services.
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[tool.poetry]
name = "app-name"
name = "styxgraph"
version = "0.1.0"
description = "A beautiful description."
authors = ["Reinder Vos de Wael <[email protected]>"]
license = "LGPL-2.1"
description = "Execution graph middleware for Styx"
authors = ["Florian Rupprecht <[email protected]>"]
license = "MIT License"
readme = "README.md"
packages = [{include = "APP_NAME", from = "src"}]
packages = [{include = "styxgraph", from = "src"}]

[tool.poetry.dependencies]
python = "~3.11"
Expand Down
1 change: 0 additions & 1 deletion setup/__init__.py

This file was deleted.

128 changes: 0 additions & 128 deletions setup/licenses.py

This file was deleted.

14 changes: 0 additions & 14 deletions setup/settings.py

This file was deleted.

123 changes: 0 additions & 123 deletions setup_template.py

This file was deleted.

1 change: 0 additions & 1 deletion src/APP_NAME/__init__.py

This file was deleted.

Loading

0 comments on commit b74b40b

Please sign in to comment.