Skip to main content

Bootstrap TFW tutorials for the Avatao platform

Project description

StartR

Python package for bootstrapping TFW tutorials

Usage

from tfwstartr import Startr

# Get available templates
available_starter_templates = Startr.get_starters()

# Get supported packages for a package manager
package_manager = 'pip' # Currently available: pip, npm
supported_packages = Startr.get_supported_packages(package_manager)

# Get required packages for a specific starter template
# The parameters can be found in _available_starter_templates_
required_packages = Startr.get_starter_requirements(
    language_name,
    framework_name,
    starter_name,
)

# Bootstrap a starter project
# It will generate a ZIP file that you can either
#    return or save
extra_packages = {
    'package_name_1': 'version_1',
    'package_name_2': 'version_2', 
}
with Startr() as startr:
    data = startr.generate_starter(
        language_name,
        framework_name,
        starter_name,
        extra_packages,
    )
    # Return the generated template
    # return data

    # Save the generated template, e.g. extract it to a folder
    import zipfile
    with zipfile.ZipFile(data) as f:
        f.extractall('/tmp/tfwstartr')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tfwstartr-1.0.3.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

tfwstartr-1.0.3-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file tfwstartr-1.0.3.tar.gz.

File metadata

  • Download URL: tfwstartr-1.0.3.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6

File hashes

Hashes for tfwstartr-1.0.3.tar.gz
Algorithm Hash digest
SHA256 5fe9c603be009dacab60a8e4f49a648e9eb0080b412ae5aaab3a0bdd57f8489f
MD5 b46c44bc15470735ebe5913bb507704c
BLAKE2b-256 49af7b8dba5b3110598aea89ecd916e6ec51455402a1fad7aa39bee8dee716bf

See more details on using hashes here.

File details

Details for the file tfwstartr-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: tfwstartr-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6

File hashes

Hashes for tfwstartr-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 98497a917ff27e95f9754be31a096ea1c38c5101f0b2d38b5c392479fbdf955e
MD5 8bca705998dac6cb999f4232528a0c6c
BLAKE2b-256 0cc5ff12a3ee046a4d0ee8295bde68813ce6113780d0d1424638e6e023b3317d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page