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.1.tar.gz (8.8 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.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for localstack_extension_typedb-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d66973c63bb5cb7e2fa4f4def3e396519a42fc72bc7538aedc65191a42a5d389
MD5 3739952191f1cc765df5acceeb8535be
BLAKE2b-256 e5f5516e447a2ca82b454de9aa9c079d4b09d5af535d4e1499722b0f6e8af416

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localstack_extension_typedb-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2bfbf1bd022b01a9dc11ab91a54e19ce1f5e0c0bd92ccbea2e727c8df35db475
MD5 99156a209a18005c2c136ba697466725
BLAKE2b-256 177218d325c039e3125ebddb705d8e9103abbf3d29ceb1f92ec722253312e25a

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