Skip to content

Commit

Permalink
Add basic package structure
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed May 21, 2021
1 parent 1d01194 commit 69270e2
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/parameter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import pyDSP as dsp

print(dsp.RangedParameter('test', 'Test'))
Empty file removed main.py
Empty file.
1 change: 1 addition & 0 deletions pyDSP/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .parameter import *
16 changes: 16 additions & 0 deletions pyDSP/parameter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import types
import abc


class RangedParameter:
def __init__(self, id: str, name: str) -> None:
self._id = id
self._name = name

@property
def id(self) -> str:
return self._id

@property
def name(self) -> str:
return self._name
19 changes: 19 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import setuptools

with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()

setuptools.setup(
name="pyDSP",
version="0.1.0",
author="Tobias Hienzsch",
author_email="[email protected]",
description="Python audio dsp utilities",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/tobanteAudio/pyDSP",
project_urls={
"Bug Tracker": "https://github.com/tobanteAudio/pyDSP/issues",
},
python_requires=">=3.8",
)

0 comments on commit 69270e2

Please sign in to comment.