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.

Change Log

  • 0.1.1: Minor fixes in CI setup, exception handling
  • 0.1.0: Initial version of the extension

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.2.tar.gz (9.1 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.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for localstack_extension_typedb-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4903f535d1577640b9ffa31ce6f1e36222898028993d3b58ad0f0e10b75e1a96
MD5 3eb5006cfb8ab2a862205ca6304b04a4
BLAKE2b-256 fda68c7ac3db781c2808ce7cdf8fa39b2200a53e0db0a05ff105ff9287d2022e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localstack_extension_typedb-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d779b208f6ca44ddc2b6aac632689939e4e94ab531a0a7217157a3bf71788532
MD5 04e993680e8e9131373ae36149f17400
BLAKE2b-256 5c588dc151761c443b88b97a6be724332d1a8ac5c393906823489fa78b611446

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