-
Notifications
You must be signed in to change notification settings - Fork 5
feat: Add shinylive url command
#20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
313debf
feat(url): Add `shinylive url`command and `make_shinylive_url()` func…
gadenbuie d570bfe
export `make_shinylive_url()`
gadenbuie a231982
chore: app and files could be Paths
gadenbuie 13a4d9d
require lzstring
gadenbuie b6944fd
remove `__all__` from `__init__.py`
gadenbuie 18cf274
noqa and pyright ingore
gadenbuie 163f452
feat: shinylive url (encode,decode)
gadenbuie cccffbc
allow piping into `shinylive url decode`
gadenbuie 281e47a
allow piping into `shinylive url encode` and detect app source code
gadenbuie 637725d
negotiate aggressively with the type checker
gadenbuie e36fbd7
demote unused f string
gadenbuie 7b02ac9
add comment
gadenbuie dd3d6f9
document --out option
gadenbuie 294341a
require `--help` so that piping into url encode works
gadenbuie 0dea7a4
include files, recursively
gadenbuie d725e57
less aggressive type check convincing
gadenbuie a7cc038
rename --out to --dir
gadenbuie 331f958
automatically detect app language when app is the text content
gadenbuie 2b9d3ce
Apply suggestions from code review
gadenbuie 479f55c
import Literal
gadenbuie b5da6d8
type narrow language from encode CLI -> internal
gadenbuie f635f55
don't need to import os
gadenbuie ef8218f
add note about decode result wrt --dir
gadenbuie 2da9c8a
write base64-decoded binary files
gadenbuie 07c952f
detect_app_language() returns "py" or "r"
gadenbuie 8f9e75a
make FileContentJson.type not required
gadenbuie e1b0b81
only add header param in app mode
gadenbuie b87490b
if file is str|Path, promote to list
gadenbuie 246cdad
improve FileContentJson typing throughout
gadenbuie 4a96487
exclude _dev folder from checks
gadenbuie 89f4d27
fix syntax for creating FileContenJson objects
gadenbuie 6d5c22a
require typing-extensions
gadenbuie 373f639
separate bundle creation from URL encoding
gadenbuie d3a7665
add `encode_shinylive_url()` and make only encode/decode public
gadenbuie dd75236
simplify types and remove need for AppBundle
gadenbuie 6674c6b
move package version into a subpackage
gadenbuie a9199b7
wrap decode outputs in helper functions, too
gadenbuie b6bf76f
rename version to _version
gadenbuie c80e99c
docs: describe feature in changelog
gadenbuie 5a73146
fix one more _version import
gadenbuie bc0fad7
bump package version to 0.1.3.9000
gadenbuie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,6 +1,6 @@ | ||
| [metadata] | ||
| name = shinylive | ||
| version = attr: shinylive.__version__ | ||
| version = attr: shinylive._version.SHINYLIVE_PACKAGE_VERSION | ||
| author = Winston Chang | ||
| author_email = [email protected] | ||
| url = https://github.com/posit-dev/py-shinylive | ||
|
|
@@ -36,6 +36,8 @@ install_requires = | |
| shiny | ||
| click>=8.1.7 | ||
| appdirs>=1.4.4 | ||
| lzstring>=1.0.4 | ||
| typing-extensions>=4.0.1 | ||
| tests_require = | ||
| pytest>=3 | ||
| zip_safe = False | ||
|
|
@@ -69,7 +71,7 @@ console_scripts = | |
| # F405: Name may be undefined, or defined from star imports | ||
| # W503: Line break occurred before a binary operator | ||
| ignore = E302, E501, F403, F405, W503 | ||
| exclude = docs, .venv | ||
| exclude = docs, .venv, _dev | ||
|
|
||
| [isort] | ||
| profile=black | ||
This file contains hidden or 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,5 +1,8 @@ | ||
| """A package for packaging Shiny applications that run on Python in the browser.""" | ||
|
|
||
| from . import _version | ||
| from ._url import decode_shinylive_url, encode_shinylive_url | ||
| from ._version import SHINYLIVE_PACKAGE_VERSION | ||
|
|
||
| __version__ = _version.SHINYLIVE_PACKAGE_VERSION | ||
| __version__ = SHINYLIVE_PACKAGE_VERSION | ||
|
|
||
| __all__ = ("decode_shinylive_url", "encode_shinylive_url") |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.