Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Sweetpotato 🥔

alt text alt text Documentation Status Code style: black

This project is still in early stages of development and is not stable.

Sweetpotato provides an intuitive wrapper around React Native, making cross-platform development (iOS, Android, Web) accessible from Python.


See https://sweetpotato.readthedocs.io for documentation.


You can view the below example at the following link: https://snack.expo.dev/@greysonlalonde13/amused-crackers

from sweetpotato.app import App
from sweetpotato.components import Image, StyleSheet, Text, Button, View
from sweetpotato.config import settings
from sweetpotato.navigation import create_bottom_tab_navigator

settings.USE_NAVIGATION = True

styles = StyleSheet.create({
    "image": {"height": 200, "width": 200, "borderRadius": 50},
    "layout": {
        "justifyContent": "center",
        "alignItems": "center",
        "flex": 1,
    },
    "text": {"margin": 25},
})

tab = create_bottom_tab_navigator(name="tab")

image_url = "https://raw.githubusercontent.com/greysonlalonde/sweetpotato/main/media/sweetpotatoes.JPG"
home_page = View(
    style=styles.layout,
    children=[
        Image(style=styles.image, source={"uri": image_url}),
        Text(style=styles.text, text="Sweet, Sweet Potatoes"),
        Button(title="Info", on_press="() => alert('This app was made with sweetpotato')")
    ]
)

tab.screen(
    screen_name="Home",
    children=[home_page],
)
app = App(component=tab, theme="dark")

if __name__ == "__main__":
    app.run()

iOS, Android, and web:

Metadata

Release files for sweetpotato 0.7.0a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sweetpotato 0.7.0a0
File Size Uploaded
sweetpotato-0.7.0a0.tar.gz 220.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sweetpotato 0.7.0a0
File Interpreter ABI Platform
sweetpotato-0.7.0a0-py3-none-any.whl Python 3 none any Details

Total release size: 449.9 kB

Release files / sweetpotato-0.7.0a0.tar.gz

Download URL sweetpotato-0.7.0a0.tar.gz
Size 220.7 kB
Tags Source
SHA-256 checksum
How to use checksums
447033a18cbca380e9cb81def6f15e9b6a7b226f5cb48747660255b325a9706f
BLAKE2b-256 checksum
How to use checksums
bbbea9d461f1edf7884ffeeabbca000de7b67cb6fc9c2b710def13e3ece47e8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / sweetpotato-0.7.0a0-py3-none-any.whl

Download URL sweetpotato-0.7.0a0-py3-none-any.whl
Size 229.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5149825b2c9089255b2ebdd14008c21d375eec42440340b74c446c9ec34625af
BLAKE2b-256 checksum
How to use checksums
be7e40e0c8647ae9da896cb58e8f50f177ff18528d346eb2f18e6853cfd55548
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page