mirror of
https://github.com/kennethreitz/replit-py.git
synced 2026-06-05 23:10:18 +00:00
6fb18b0f5e
* Add new raises sections in docstring * Fix issue #6 * Fix _async2sync to pass a correct self value Initialize a _super variable in __init__ which is an instance of the async base class and is used as the self argument to async methods so that the class can await internal methods * Add do_raise to AsyncJSONKey __slots__ * Add back duplicate sync code For performance and my sanity, its actually easier to just have duplicate code rather than try fancy async stuff * Remove nest_asyncio * Fix bug with auth.signed_in If header doesn't exist, name will be None, which is not equal to an empty string making signed_in pass. Changed to bool because None and empty string are both falsey * Ignore S201: debug=True warning * Add new debug method to run the app in debug mode * Add init method and nice_jinja setting * Handle unset watch_files value * Obey D402 * Remove unnecessarily duplicated methods * Add getitem and setitem to sync JSONKey * Remove whitespace from blank line * Add new shorthands * Add key() method * Rename key() as it conflicts with key variable; fix docsting * Fix accidentally quoted variable * Make ReplitDb inherit from AsyncReplitDb * Fix linting errors * Fix a couple more errors * Add keys method and change read arg name * Add missing arg to docstring * Fix more lint errors * Add find function * Add chain_decorators function * Run black * Add mutability to keys (WIP) * Import new utils in maqpy init * Fix liniting errors in maqpy.html * Add missing colon * Pass proper dtype * Fix typo * Check for instance of ReplitDb before loading to allow passing dict as db * Set data variable to read if not loading * Convert string to f-string in type mismatch msg * Don't check datatype in keys * Allow dictionary syntax if dtype is Any * Allow __getitem__ if dtype is Any * Don't double json encode, make top-level db be self so data gets written * Be more pythonic by not checking dtype * Add more magic methods: add and iadd * In audio test, fix imports and prevent linting * Don't lint audio.types * Add todo line * Make JSONKey getitem use keys * Comment out bad tests for now
36 lines
948 B
TOML
36 lines
948 B
TOML
[tool.poetry]
|
|
name = "replit"
|
|
version = "1.4.3"
|
|
description = "A library for interacting with features of repl.it"
|
|
authors = ["mat <pypi@matdoes.dev>", "Scoder12 <pypi@scoder12.ml>", "AllAwesome497"]
|
|
license = "MIT"
|
|
readme = "README.md"
|
|
repository = "https://github.com/replit/replit-py"
|
|
homepage = "https://github.com/replit/replit-py"
|
|
documentation = "https://replit-python-docs.scoder12.repl.co"
|
|
|
|
[tool.poetry.dependencies]
|
|
python = "^3.8"
|
|
typing_extensions = "^3.7.4"
|
|
flask = "^1.1.2"
|
|
werkzeug = "^1.0.1"
|
|
aiohttp = "^3.6.2"
|
|
|
|
[tool.poetry.dev-dependencies]
|
|
flake8 = "^3.8.3"
|
|
darglint = "^1.5.2"
|
|
flake8-bandit = "^2.1.2"
|
|
flake8-bugbear = "^20.1.4"
|
|
black = "^19.10b0"
|
|
flake8-black = "^0.2.1"
|
|
flake8-import-order = "^0.18.1"
|
|
flake8-annotations = "^2.3.0"
|
|
flake8-docstrings = "^1.5.0"
|
|
sphinx = "^3.1.2"
|
|
sphinx-autodoc-typehints = "^1.11.0"
|
|
sphinx-rtd-theme = "^0.5.0"
|
|
|
|
[build-system]
|
|
requires = ["poetry>=0.12"]
|
|
build-backend = "poetry.masonry.api"
|