-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Shinylive URL encode/decode (#23)
* Refactor `url_{encode,decode}` to return a ShinyliveIoApp object * Add +/- methods for ShinyliveIoAppLocal * docs: document all the things * feat(url_decode): Track mode/header in object * tests: Add some very basic tests * docs: update news * fix: Missed setting language * fix: chunk engine is `shinylive-python` not `shinylive-py` * fix: Use snakecase for `viewer_height` * several improvements * Implement `__add__` and `__sub__` for all ShinyliveIoApp objects * +/- now return copies * `root_dir` can be None, new files are added "flattened" * More documentation * feat: Add `add_dir()` method * chore: ShinyLive -> shinylive * remove some unnecessary pythonic fanciness * Make mode, header, host public and document * Add alternate constructors * Rename class ShinyliveApp * update `url_encode()` to return a string * flip order of logical section, to prioritize True * export ShinyliveApp * simplify setting language attribute * update CLI to use new ShinyliveApp constructors * tests: fix tests * fix setting header in constructor * Add `.remove_file()` method and call in `__sub__` * Allow method chaining in ShinyliveApp methods * rename methods `.url()` -> `.to_url()` also for json, chunk, chunk_contents * docs: update changelog * docs: shinylive -> Shinylive This seems to be the preferred capitalization from other docs * remove trailing slashes from host * Update reference to ShinyliveIoApp
- Loading branch information
Showing
5 changed files
with
718 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
"""A package for packaging Shiny applications that run on Python in the browser.""" | ||
|
||
from ._url import decode_shinylive_url, encode_shinylive_url | ||
from ._url import ShinyliveApp, url_decode, url_encode | ||
from ._version import SHINYLIVE_PACKAGE_VERSION | ||
|
||
__version__ = SHINYLIVE_PACKAGE_VERSION | ||
|
||
__all__ = ("decode_shinylive_url", "encode_shinylive_url") | ||
__all__ = ("ShinyliveApp", "url_decode", "url_encode") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.