Skip to main content

nubra_workshop

Drop-in workshop adapter for the official Nubra Python SDK.

This package allows workshop participants and students to run unmodified, official Nubra Python SDK tutorials and examples without needing individual account signups, phone numbers, SMS OTPs, or MPINs.


🚀 Quick Start for Students

1. Install

pip install nubra_workshop

2. Patch explicitly, then run unmodified Nubra code

Write native Nubra SDK code exactly as shown in official Nubra documentation. Call apply_patch() once at startup — this is required (a bare import is not enough: the .pth auto-loader runs before the SDK is importable and cannot patch on its own; an import hook retries automatically, but explicit is reliable):

import nubra_workshop
nubra_workshop.apply_patch()
assert nubra_workshop.is_active(), nubra_workshop.status()

from nubra_python_sdk.start_sdk import InitNubraSdk, NubraEnv
from nubra_python_sdk.refdata.instruments import InstrumentData
from nubra_python_sdk.marketdata.market_data import MarketData

# Initializes via the workshop relay gateway automatically:
nubra = InitNubraSdk(NubraEnv.UAT)

# Fetch instruments:
instruments = InstrumentData(nubra)
inst = instruments.get_instrument_by_symbol("RELIANCE26OCT700CE", exchange="NSE")
print("Found instrument:", inst.stock_name if inst else "None")

# Live market data:
market = MarketData(nubra)
price_info = market.current_price("NIFTY")
print("Live NIFTY Price:", price_info.price if price_info else "N/A")

No OTP prompts, no MPIN prompts, and no custom code required!


⚙️ How It Works

  1. Explicit activation: call nubra_workshop.apply_patch() (idempotent) after importing. The site-packages auto-loader (.pth) attempts this for you, but Python runs it before the SDK is importable, so an import hook retries the patch when nubra_python_sdk is first imported. Verify with nubra_workshop.status().
  2. Explicit Import: include import nubra_workshop at the top of your script.
  3. Custom Gateway URL: If your instructor hosts a custom gateway, point to it using an environment variable:
    export NUBRA_GATEWAY_URL="https://your-custom-gateway.example.com"
    

📦 Compatibility

  • Official nubra-sdk >= 0.5.4
  • Python >= 3.9

Metadata

Release files for nubra_workshop 1.0.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 nubra_workshop 1.0.3
File Size Uploaded Provenance Actions
nubra_workshop-1.0.3.tar.gz 4.8 kB Without provenance Details for nubra_workshop-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nubra_workshop 1.0.3
File Interpreter ABI Platform Actions
nubra_workshop-1.0.3-py3-none-any.whl Python 3 none any Details for nubra_workshop-1.0.3-py3-none-any.whl

Total release size: 9.9 kB

Release files / nubra_workshop-1.0.3.tar.gz

Download URL nubra_workshop-1.0.3.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1216aef852215bd0cc3db0c54871b90db60ddf0aac30e91203ad767f5d7db6bc
BLAKE2b-256 checksum
How to use checksums
04f11134fcf1003a78b8ab7f5410b360be8f04981bcb0ce8593240e10f4a0fc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Omarchy","version":"4.0.0","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / nubra_workshop-1.0.3-py3-none-any.whl

Download URL nubra_workshop-1.0.3-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36e8df8ea82b06f8440d0438dfe789f41bdd6a181271ebae7092533944b67cdc
BLAKE2b-256 checksum
How to use checksums
85e28cb944fec62371cfaa2372e5a9e9a5124439fb5842c827afbced83bfaea3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Omarchy","version":"4.0.0","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for nubra_workshop 1.0.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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