Skip to main content

LocalStack Extension: TypeDB on LocalStack

Project description

TypeDB on LocalStack

This repo contains a LocalStack Extension that facilitates developing TypeDB-based applications locally.

After installing the extension, a TypeDB server instance will become available under typedb.localhost.localstack.cloud:4566, allowing you to create and manage TypeDB databases directly from your AWS applications running in LocalStack.

For example, you could create a microservice backed by a Lambda function that connects to a TypeDB database upon invocation. See here for a simple example application that makes use of this extension.

Configuration

The following environment variables can be passed to the LocalStack container (make sure to prefix them with LOCALSTACK_... when using the localstack start CLI), to steer the behavior of the extension:

  • TYPEDB_FLAGS: Additional user-defined command args to pass to the TypeDB container.
  • TYPEDB_HTTP2_PROXY: Flag to enable/disable HTTP2 proxy for gRPC traffic (use this if you experience network issues, and use the HTTP variant of the TypeDB driver).

Prerequisites

  • Docker
  • LocalStack Pro (free trial available)
  • localstack CLI
  • make

Install from GitHub repository

This extension can be installed directly from this Github repo via:

localstack extensions install "git+https://github.com/localstack/localstack-extensions.git#egg=typedb&subdirectory=typedb"

Install local development version

Please refer to the docs here for instructions on how to start the extension in developer mode.

License

The code in this repo is available under the Apache 2.0 license.

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

localstack_extension_typedb-0.1.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

localstack_extension_typedb-0.1.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file localstack_extension_typedb-0.1.0.tar.gz.

File metadata

File hashes

Hashes for localstack_extension_typedb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dc90b2671b2534d63118a44de14b638c2767f293d0f3f192585665b5fd088596
MD5 31505e2785bac13c6219e1be1cee0f4d
BLAKE2b-256 d2e807bcf9b05416c61667bb6111dbceaf73a11b3f298c7b70781b288897f159

See more details on using hashes here.

File details

Details for the file localstack_extension_typedb-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for localstack_extension_typedb-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3a07ba364a603205e84b5059685c4d54d4695601d43dac352951cdc25e4769c
MD5 cd628b51eaa54bbe049baee400ccf451
BLAKE2b-256 1ab5bf788faa8cfc68e14ba2862ad4ef381cf5bf284ebf7a56ce1c4cfe2c4256

See more details on using hashes here.

Supported by

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