Are you an R/Shiny user looking to leverage the incredible capabilities of Shiny for Python without sacrificing the familiarity and comfort of your existing tools?
Introducing Tapyr—our Shiny for Python framework. It brings Rhino-like capabilities from the R world and more to the Shiny for Python ecosystem, helping you build enterprise-ready applications with ease.
Curious about Shiny for Python from an R Shiny dev’s perspective? Check out this blog post to learn more.
Tapyr is designed as a lightweight template repository for PyShiny projects that offers tools similar to Rhino for R/Shiny. For instance, Tapyr introduces poetry
, which handles project dependencies much like renv
in R. This ensures that R users can smoothly adapt to Python without tackling a steep learning curve while adhering to best practices from day 0.
While Posit’s PyShiny templates cater to exploratory data analysis, Tapyr serves a distinct, complementary role by providing a structured repository designed to kickstart your projects. This approach focuses on developing comprehensive, scalable and future-proof applications.
This not only expands the tools available to data scientists and developers but also helps you to tackle larger, more complex projects effectively.
Tapyr is ideal for data scientists (transitioning from R to Python), developers familiar with Shiny and Rhino building projects in PyShiny, and academic researchers and enterprise professionals requiring enterprise-level dashboard frameworks.
We recommend using the Dev Container configuration with Visual Studio Code (VS Code) or DevPod to ensure a consistent development experience across different computers and environments. It may sound complicated, but it is as easy as a breeze!
The Dev Container is like a virtual environment with everything you need to work on the project, including all the required software and dependencies.
Ctrl+Shift+P
on Windows/Linux, or Cmd+Shift+P
on Mac) and choose “Remote-Containers: Reopen in Container.”
poetry shell
shiny run app.py --reload
This will start the application and automatically reload it whenever you make changes to the code.
poetry run pytest
If you prefer to run this locally, you can do so using Poetry.
Struggling with Quality Assurance for your Shiny for Python Dashboards? Check out this blog post to learn more about leveraging Playwright.
Dive into Tapyr and start building your enterprise-level applications today!
Download Tapyr, check out the documentation, explore its functionalities, and join the community of innovators expanding their PyShiny skillsets.
We value your feedback, so please share your experiences and suggestions to help us improve Tapyr in our Shiny community.
Want to stay up to date with Tapyr and other packages? Join 4.2k explorers and get the Shiny Weekly Newsletter into your mailbox.
Q: Is there a community or support available for Tapyr users?
A: You can create a pull request, open an issue, follow our documentation, and engage with other users in our community to get support, share insights, and contribute to the project’s development.
Q: How is Tapyr different from Posit’s PyShiny templates?
A: While Posit’s PyShiny templates focus on exploratory data analysis, Tapyr is a framework focused on building comprehensive, scalable PyShiny applications.
Q: How does Tapyr compare to other tools like reticulate?
A: While reticulate allows you to call Python from R, Tapyr takes a different approach by providing a streamlined framework for building enterprise-ready applications using Shiny for Python. Since all the code is written in Python, it offers features like static type checking, comprehensive testing with Playwright, and seamless integration with Python ecosystems.
The post appeared first on appsilon.com/blog/.