Commit Graph

26 Commits

Author SHA1 Message Date
Sidney Kochman c4284478f4 2.0.0 2020-08-19 16:37:17 -04:00
Sidney Kochman fb190d1925 2.0.0 alpha 2020-08-19 16:32:01 -04:00
Sidney Kochman e1a33cbe31 move coverage to dev deps, fix some tests (#14) 2020-08-14 19:46:39 -04:00
Scoder12 6fb18b0f5e Make audio lint without errors (#12)
* 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
2020-08-14 14:18:52 -07:00
Sidney Kochman 5a056be04c use new key query param and add some tests (#13)
* first test

* unescape returned keys

* fix to_dict

* wip

* a bit of sync

* dict methods

* lint

* oop

* run the tests

* concurrently

* secret
2020-08-13 16:43:32 -07:00
Scoder12 6b7af69e7e Merge branch 'master' into dev 2020-08-05 18:36:45 -07:00
Scoder12 ab79581905 Use nest_asyncio to fix async to sync function 2020-08-05 15:48:37 -07:00
Scoder12 b0bce695cd Initial code for switch to async 2020-08-04 13:25:26 -07:00
Scoder12 2c3ece9852 Update dependencies 2020-08-03 17:16:52 -07:00
Codemonkey51 b90db79f96 added async :D 2020-08-03 16:59:36 -07:00
Scoder12 e35964babe Bump patch version 2020-07-30 13:01:22 -07:00
Scoder12 28ccc7c3a3 Bump patch version 2020-07-29 12:53:18 -07:00
Scoder12 b839d322ee Bump patch version 2020-07-29 12:43:13 -07:00
Scoder12 9da2e19ff5 Bump minor version 2020-07-29 11:58:10 -07:00
Scoder12 85286c59ec Bump version to above old version
Was using 0.3.0 instead of 1.3.0 🤦
2020-07-28 15:35:13 -07:00
Scoder12 c3318024f7 Bump version to reupload to pypi 2020-07-28 15:32:43 -07:00
Scoder12 c82866a7cf Don't require beta poetry version 2020-07-28 12:31:47 -07:00
Scoder12 0c108a879b Update package metadata
Fix stale description, add mat as primary author (because they own the package), add documentation link
2020-07-28 12:30:16 -07:00
Scoder12 9d877d39b9 Add package metadata 2020-07-28 10:36:03 -07:00
Scoder12 d9dfb5a561 Add flask dependency for maqpi 2020-07-27 17:21:01 -07:00
Scoder12 94e8c30f9d Switch to readthedocs theme with custom darktheme 2020-07-27 15:57:58 -07:00
Scoder12 f922783eaf Add sphinx readthedocs theme 2020-07-27 15:19:05 -07:00
Scoder12 84735e1b4d Bump version to be above the old version 2020-07-27 15:05:00 -07:00
Scoder12 d9f5b1db3f Adding typing_extensions dependency
Required by replit.audio.types
2020-07-27 14:47:41 -07:00
Scoder12 d62b2a5d98 Fix docs configuration 2020-07-27 14:40:12 -07:00
Scoder12 d6c4d6ca74 Initial commit 2020-07-27 10:31:33 -07:00