-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
68 lines (47 loc) · 1.98 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import re
from setuptools import setup
__version__ ,= re.findall('__version__ = "(.*)"', open('runtype/__init__.py').read())
setup(
name = "runtype",
version = __version__,
packages = ['runtype'],
requires = [],
install_requires = [],
package_data = { '': ['*.md'] },
test_suite = 'tests.__main__',
# metadata for upload to PyPI
author = "Erez Shinan",
author_email = "[email protected]",
description = "Type dispatch and validation for run-time",
license = "MIT",
keywords = "types typing dispatch dataclass runtime",
url = "https://github.com/erezsh/runtype",
download_url = "https://github.com/erezsh/runtype/tarball/master",
long_description='''
Runtype is a collection of run-time type utilities for Python.
It is:
🏃 Fast! (benchmarks coming soon)
🧠 Smart! Supports typing, constraints, auto-casting, and much more.
⚙️ Very customizable. You can use dataclass and dispatch with your own typesystem!
Modules
⭐ validation - Provides a smarter alternative to isinstance and issubclass
Supports typing module, and type constraints.
⭐ dataclass - Adds run-time type validation to the built-in dataclass.
Improves dataclass ergonomics.
Supports automatic value casting, Pydantic-style. (Optional, off by default)
Supports types with constraints. (e.g. String(max_length=10))
⭐ dispatch - Provides fast multiple-dispatch for functions and methods, via a decorator.
Inspired by Julia.
⭐ base_types - Provides a set of classes to implement your own type-system.
Used by runtype itself, to emulate the Python type-system.
''',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
],
)