Skip to main content

Scaleway Serverless Gateway

PyPI version Documentation Status Build status

The Scaleway Serverless Gateway is a self-hosted API gateway that runs on Scaleway Serverless Containers.

It lets you manage routing from a single base URL, as well as handle transversal concerns such as CORS and authentication.

It is built on Kong Gateway, giving you access to the Kong plugin ecosystem to customize your deployments.

You can read all about it in this blog post.

If you would like to join in the discussion on how we continue developing the project, or give us feedback, then join us on the #api-gateway-beta channel on the Scaleway Community Slack.

📃 Contents

Please see the docs for full documentation and features.

💻 Quickstart

To deploy your gateway you need to install and configure the Scaleway CLI, and the Gateway CLI via pip:

pip install scw-gateway

Once done, the following steps can be run from the root of the project, and will deploy the gateway as a Serverless Container in your Scaleway account.

The gateway image itself is packaged via our public Serverless Gateway Docker image.

Deploy your gateway

To deploy your gateway, you can run:

scwgw infra deploy

For more information on the deployment process, see the deployment docs.

Add a route

To check your gateway is working, you can add and remove a route:

# Check no routes are configured initially
scwgw route ls

# Check the response directly from a given URL
TARGET_URL=http://worldtimeapi.org/api/timezone/Europe/Paris
curl $TARGET_URL

# Add a route to this URL in your gateway
scwgw route add /time $TARGET_URL

# List routes to see that it's been configured
scwgw route ls

# Curl the URL via the gateway
GATEWAY_ENDPOINT=$(scwgw infra endpoint)
curl https://${GATEWAY_ENDPOINT}/time

Delete your gateway

To delete your gateway, you can run:

scwgw infra delete

🎓 Contributing

We welcome all contributions to our open-source projects, please see our contributing guidelines.

Do not hesitate to raise issues and pull requests we will have a look at them.

📬 Reach us

We love feedback. Feel free to:

Release files for scw-gateway 0.6.1

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

Source distribution (sdist)

Source distribution for scw-gateway 0.6.1
File Size Uploaded
scw_gateway-0.6.1.tar.gz 22.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scw-gateway 0.6.1
File Interpreter ABI Platform
scw_gateway-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 50.3 kB

Release files / scw_gateway-0.6.1.tar.gz

Download URL scw_gateway-0.6.1.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9781763d4c33fbe89ef315daff4115aad329da023183e6d87e39214306584f16
BLAKE2b-256 checksum
How to use checksums
add20586c51fea46843960257f4cad3b00e7bcd3912d13ecd9d343940708c688
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1041-azure

Release files / scw_gateway-0.6.1-py3-none-any.whl

Download URL scw_gateway-0.6.1-py3-none-any.whl
Size 27.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0973952ba8a1599ff85a85d616b83f178fe0996b174d82e50830f34a2589fb10
BLAKE2b-256 checksum
How to use checksums
3cec5bbdee9c46a76d9864354f21daea17167b1f5f6a847c784e58fd8e248ff0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1041-azure

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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