mirror of
https://github.com/kennethreitz/replit-py.git
synced 2026-06-05 23:10:18 +00:00
6fb18b0f5e768b06d72c0b94713feea58433af77
* 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
replit-py
Replit-py is a python library designed to be run from a repl on repl.it.
Features
- Fully featured database client for Repl DB
- Audio library which can play tones and files
- Terminal Utillity library which can create and clear colors better than most libaries
Documentation
The documentation can be found here.
Description
Languages
Python
99.7%
Makefile
0.3%