Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Scadable Tests
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- main
# push:
# branches:
# - main

jobs:
test:
Expand Down
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ cython_debug/
.abstra/

# Visual Studio Code
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
# and can be added to the global gitignore or merged into this file. However, if you prefer,
# and can be added to the global gitignore or merged into this file. However, if you prefer,
# you could uncomment the following to ignore the entire vscode folder
# .vscode/

Expand All @@ -207,4 +207,4 @@ marimo/_lsp/
__marimo__/

# Pycharm files
.idea
.idea
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.0
hooks:
- id: ruff-check
args: [ --fix ]
- id: ruff-format
27 changes: 27 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Contribution Guidelines

Please refer to the [Organization Docs](https://github.com/scadable/.github/blob/main/CONTRIBUTING.md) on how to
contribute to any project at Scadable.

## Codestyle

This project uses [ruff](https://github.com/astral-sh/ruff) to enforce style requirements. This is already configured in
a tool called [pre-commit](https://pre-commit.com/).

To validate your PR, you can use the [installation guide](https://pre-commit.com/#install) to setup pre-commit hooks.

To setup git pre-commit hooks, run:

```commandline
pre-commit install
```

To run codestyle validations without install hooks, run:

```commandline
pre-commit run --all-files
```

## Releases

To push a new version of this package to PyPi, create a Release on github to run the deployment workflow.
49 changes: 48 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,48 @@
# library-python
# Scadable

[![PyPi](https://img.shields.io/pypi/v/scadable)](https://pypi.org/project/scadable/)
[![Downloads](https://static.pepy.tech/badge/scadable/month)](https://pepy.tech/project/scadable)
[![Supported Versions](https://img.shields.io/pypi/pyversions/scadable.svg)](https://pypi.org/project/scadable)
[![GitHub issues](https://img.shields.io/badge/issue_tracking-github-blue.svg)](https://github.com/scadable/library-python/issues)
[![GitHub actions status](https://github.com/scadable/library-python/actions/workflows/test-project.yml/badge.svg)](https://github.com/scadable/library-python/actions/workflows/test-project.yml)

**Scadable** is the first fully container‑native SCADA platform—built on Kubernetes & NATS and delivered with Python +
React SDKs.
Forget rigid vendor UIs: craft your own dashboards, deploy in any cloud, and scale to millions of tags in minutes.

## Getting Started

Assuming that you have a supported version of Python installed, you can first set up your environment with:

```bash
python -m venv .venv
...
. .venv/bin/activate
```

or

```commandline
python -m venv .venv
...
".venv/Scripts/activate"
```

Then, you can install Scadable from PyPI with:

```commandline
python -m pip install scadable
```

## Running Tests

You can run tests in your environment by running the `pytest` command directly:

```commandline
pytest tests
```

## Contributing

Please read through the [CONTRIBUTING](https://github.com/scadable/library-python/blob/main/CONTRIBUTING.md) document
before submitting any issues or pull requests.
14 changes: 11 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ description = "A Python library for scalable and modular software development."
readme = "README.md"
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3",
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
"Operating System :: OS Independent",
]
license = "Apache-2.0"
Expand All @@ -24,10 +31,11 @@ dependencies = [
dev = [
"pytest",
"coverage",
"pytest-cov"
"pytest-cov",
"pre-commit"
]


[project.urls]
"Homepage" = "https://github.com/scadable/library-python"
"Bug Tracker" = "https://github.com/scadable/library-python/issues"
"Bug Tracker" = "https://github.com/scadable/library-python/issues"
2 changes: 1 addition & 1 deletion src/scadable/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
print("Hello World")
print("Hello World")
2 changes: 1 addition & 1 deletion tests/test_import.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
def test_module_import():
import src.scadable
import src.scadable # noqa
Loading