175 Commits

Author SHA1 Message Date
Scoder12 cf4cfea9c0 Update sphinx 2020-08-12 18:16:13 -07:00
Scoder12 4d76b91a1a Change status to be int instead of str 2020-08-12 16:40:52 -07:00
Scoder12 7d9b76f1eb Pull from master into dev 2020-08-12 14:18:43 -07:00
Scoder12 92adf3f0e9 Make ReplitDb inherit from AsyncReplitDb 2020-08-12 14:15:50 -07:00
Sidney Kochman 6c1924ddb5 use Semaphore for CI (#11) 2020-08-12 10:44:03 -04:00
Scoder12 d91c49568d Fix accidentally quoted variable 2020-08-11 16:50:28 -07:00
Scoder12 0bb1ada4d3 Rename key() as it conflicts with key variable; fix docsting 2020-08-11 16:33:20 -07:00
Scoder12 758edf4ba3 Add key() method 2020-08-11 16:23:21 -07:00
Scoder12 9e880dcce7 Add new shorthands 2020-08-11 16:08:46 -07:00
Scoder12 bcd9aaa4f3 Remove whitespace from blank line 2020-08-11 15:58:42 -07:00
Scoder12 f79df2374a Add getitem and setitem to sync JSONKey 2020-08-11 15:58:20 -07:00
Scoder12 80ecabf219 Remove unnecessarily duplicated methods 2020-08-11 15:48:23 -07:00
Scoder12 73ba9ee9b6 Obey D402 2020-08-11 15:43:16 -07:00
Scoder12 aa6d7426fe Handle unset watch_files value 2020-08-11 15:18:07 -07:00
Scoder12 42ac5217fe Add init method and nice_jinja setting 2020-08-11 14:38:57 -07:00
Sidney Kochman d0866e9bcb fix termutils (#8) 2020-08-11 15:19:46 -04:00
techpixel 40c8431d45 Fix Typos (#7) 2020-08-11 15:18:44 -04:00
Scoder12 89cc0fccd2 Add new debug method to run the app in debug mode 2020-08-11 11:53:35 -07:00
Scoder12 e8093ca89b Ignore S201: debug=True warning 2020-08-11 11:53:01 -07:00
Scoder12 82fca56318 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
2020-08-10 19:00:01 -07:00
Scoder12 9f0cc538a6 Remove nest_asyncio 2020-08-10 18:58:29 -07:00
Scoder12 7fd3a49f09 Add back duplicate sync code
For performance and my sanity, its actually easier to just have duplicate code rather than try fancy async stuff
2020-08-10 18:58:06 -07:00
Scoder12 b1d525b015 Add do_raise to AsyncJSONKey __slots__ 2020-08-10 15:10:03 -07:00
Scoder12 1c4c7c069f 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
2020-08-10 15:09:40 -07:00
Scoder12 e89701c3c1 Merge pull request #5 from techpixel/master
Add Color Utilities
2020-08-08 16:22:31 -07:00
Scoder12 764804fb6b Fix issue #6 2020-08-07 14:53:23 -07:00
Manitej Boorgu b1b10eb2d0 capitalized class names 2020-08-07 21:33:17 +00:00
Manitej Boorgu c2a3e5bd72 added in hsv and hls support as classmethods using colorsys 2020-08-07 03:55:03 +00:00
repl.it user 3db7b700d2 Merge remote-tracking branch 'origin/master' 2020-08-07 01:55:53 +00:00
Manitej Boorgu 785ac979b5 ran flake and black again 2020-08-07 01:55:33 +00:00
Manitej Boorgu f20c8bb9bc Added in Changes 2020-08-06 23:35:10 +00:00
techpixel 2f4b9fb48c Add Backwards Compatibility Support 2020-08-06 00:14:13 -05:00
Manitej Boorgu 6e03ee16a6 Impelmented Everything - All Color Utils worked, tests work good 2020-08-06 05:10:14 +00:00
Scoder12 128eef516f Add new raises sections in docstring 2020-08-05 19:23:58 -07:00
Scoder12 eb5270e475 Merge pull request #4 from replit/dev
Add new raises kwarg to JSONKey
2020-08-05 18:40:56 -07:00
Scoder12 dc05f16058 Merge branch 'master' of https://github.com/replit/replit-py into dev 2020-08-05 18:37:40 -07:00
Scoder12 3a40311844 Add new raises kwarg in JSONKey 2020-08-05 18:37:28 -07:00
Scoder12 84c1d05802 Merge pull request #3 from replit/dev
Add async database client support
2020-08-05 18:37:06 -07:00
Scoder12 6b7af69e7e Merge branch 'master' into dev 2020-08-05 18:36:45 -07:00
Scoder12 ea8301205e Don't unasync JSONKey internal methods because they are awaited 2020-08-05 15:58:16 -07:00
Scoder12 7d6f45be6c Pass async db to async to synced JSONKey which expects it 2020-08-05 15:51:35 -07:00
Scoder12 ab79581905 Use nest_asyncio to fix async to sync function 2020-08-05 15:48:37 -07:00
Scoder12 2133d52354 Update poetry 2020-08-05 15:43:13 -07:00
Scoder12 69832079d6 Make ReplitDb a subclass of AsyncReplitDb 2020-08-05 15:31:46 -07:00
Scoder12 75f09b90f5 Add async conversions for all coroutines 2020-08-05 14:12:49 -07:00
Scoder12 b60a027225 Switch regular string to fstring, reorder imports 2020-08-04 16:44:56 -07:00
Scoder12 9cf5c102ca Overhaul async and sync code
Add new _async2sync function to copy async code into a sync class
2020-08-04 16:30:26 -07:00
Scoder12 b0bce695cd Initial code for switch to async 2020-08-04 13:25:26 -07:00
Scoder12 b10b0212ab Use correct kwarg name in ratelimit example 2020-08-04 12:46:23 -07:00
Scoder12 dcbbaebcf7 Fix typo in ratelimit example 2020-08-04 12:45:39 -07:00