Skip to main content

@0bit/0gate

Unified official SDK for the 0Gate ramp API — Node server, browser embed, React components, and Python.

Install

Surface Command
Node (server) npm install @0bit/0gate
Browser (bundler) npm install @0bit/0gate → import { GateRamp } from '@0bit/0gate/browser'
React npm install @0bit/0gate → import { RampCheckout } from '@0bit/0gate/react'
Python pip install 0bit-0gate → from zerobit.gate import GateClient

Python framework extras

pip install "0bit-0gate[django]"
pip install "0bit-0gate[fastapi]"
pip install "0bit-0gate[flask]"

Quick start — Node

import { GateClient } from '@0bit/0gate';

const client = new GateClient({ apiKey: process.env.GATE_KEY! });

const session = await client.sessions.create({
   amount: '100.00',
   currency: 'EUR',
   return_url: 'https://myapp.example/done',
});

console.log(session.client_secret);

Quick start — Browser

import { GateRamp } from '@0bit/0gate/browser';

const ramp = new GateRamp({
   publishableKey: 'pk_test_...',
   clientSecret: session.client_secret,
});
await ramp.mount('#gate-container');

CDN (IIFE):

<script src="https://cdn.jsdelivr.net/npm/@0bit/0gate/dist/browser/0gate.iife.js"></script>
<script>
  const ramp = new GateJS.GateRamp({ publishableKey: 'pk_test_...', clientSecret: 'gsec_...' });
  ramp.mount('#container');
</script>

Quick start — React

import { RampCheckout } from '@0bit/0gate/react';

<RampCheckout
   publishableKey={import.meta.env.VITE_GATE_KEY}
   clientSecret={session.client_secret}
   onSuccess={({ txId }) => router.push('/done')}
/>

Quick start — Python

from zerobit.gate import GateClient

client = GateClient(api_key="sk_test_...")
session = client.sessions.create({
    "amount": "100.00",
    "currency": "EUR",
    "return_url": "https://myapp.example/done",
})
print(session["client_secret"])

SDK naming policy

Surface 0Gate Future products
npm @0bit/0gate @0bit/0pools, @0bit/0base
PyPI 0bit-0gate 0bit-0pools, 0bit-0base
Python import zerobit.gate zerobit.pools, zerobit.base

Development

cd 0Bit_apps/0Gate/0Gate_Sdk
npm ci && npm run build && npm test
pip install -e ".[dev,django,fastapi,flask]"
pytest

License

MIT. Part of the 0Bit / 0Gate ramp platform.

Metadata

Release files for 0bit-0gate 0.1.3

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

Source distribution (sdist)

Source distribution for 0bit-0gate 0.1.3
File Size Uploaded Provenance Actions
0bit_0gate-0.1.3.tar.gz 11.2 kB With provenance Details for 0bit_0gate-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for 0bit-0gate 0.1.3
File Interpreter ABI Platform Actions
0bit_0gate-0.1.3-py3-none-any.whl Python 3 none any Details for 0bit_0gate-0.1.3-py3-none-any.whl

Total release size: 26.2 kB

Release files / 0bit_0gate-0.1.3.tar.gz

Download URL 0bit_0gate-0.1.3.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a05ce18ef327984597271d130cd60872b68dc7c109cb6df1ab9c0ec9b5e7b0cc
BLAKE2b-256 checksum
How to use checksums
b30c3494f8ecc234fda30b10f80affbdeec6f0ef0f38b2058c30df50f4e1e64c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 31, 2026.

Transparency log

Release files / 0bit_0gate-0.1.3-py3-none-any.whl

Download URL 0bit_0gate-0.1.3-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c4daa728c40d26807074ac65ffaa5fb4e1f89cadf54746573962427d0975dfa
BLAKE2b-256 checksum
How to use checksums
3d7072e85a1f3772f496989b35f75e1ab0821977e7d417631f6b0004af5651a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 31, 2026.

Transparency log

Security for 0bit-0gate 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for 0bit_0gate-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 31, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files Full provenance

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