openai-python VS jsii

Compare openai-python vs jsii and see what are their differences.

openai-python

The official Python library for the OpenAI API (by openai)

jsii

jsii allows code in any language to naturally interact with JavaScript classes. It is the technology that enables the AWS Cloud Development Kit to deliver polyglot libraries from a single codebase! (by aws)
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
openai-python jsii
71 37
27,364 2,753
1.7% 1.3%
9.7 9.2
about 13 hours ago 5 days ago
Python TypeScript
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

openai-python

Posts with mentions or reviews of openai-python. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-05-06.
  • Structured Output with LangChain and Llamafile
    1 project | news.ycombinator.com | 26 Jun 2025
  • 🚀 Building an Azure OpenAI Chatbot: Challenges, Solutions & Why JavaScript Beats Python for the Web
    2 projects | dev.to | 6 May 2025
    Check the official migration guide for updates.
  • XAI Has Acquired X
    1 project | news.ycombinator.com | 28 Mar 2025
    Okay, I know Tesla's extremely high P/E ratio is because it's worth is not just tied to cars, and so xAI priced at $20B more than Anthropic does not necessarily mean xAI's AI products are that much better than Anthropic's (e.g. presumably xAI's worth is tied to synergies with Tesla FSD, Optimus, and maybe even Neurolink)...but what products does xAI actually offer, other than Grok being an add-on for premium X subscriptions?

    Not only does the Grok API not have access to Grok 3, which was released more than a month ago, it doesn't even have it's own SDK? [0]

    > Some of Grok users might have migrated from other LLM providers. xAI API is designed to be compatible with both OpenAI and Anthropic SDKs, except certain capabilities not offered by respective SDK. If you can use either SDKs, we recommend using OpenAI SDK for better stability.

    (every code example has a call for `from openai import OpenAI`)

    How would using Grok be viable for any enterprise? And if Grok's API is designed to be drop-in replacement for OpenAI's, how are they not able to just use Grok to whip up their own SDK variant based on OpenAI's open-sourced SDK [1] and API spec?

    [0] https://docs.x.ai/docs/guides/migration

    [1] https://github.com/openai/openai-python

  • New Tools for Building Agents
    20 projects | news.ycombinator.com | 11 Mar 2025
    If you want to get an idea for the changes, here's a giant commit where they updated ALL of the Python library examples in one go from the old chat completions to the new resources APIs: https://github.com/openai/openai-python/commit/2954945ecc185...
  • Build your next AI Tech Startup with DeepSeek
    6 projects | dev.to | 3 Feb 2025
    The API itself is pretty straightforward. You can use it with the OpenAI package on NPM or PIP, or make an HTTP Request. Note for this demo I will be using NodeJS. I will be working in an empty folder with an index.js file, and a package.json file.
  • Introduction to Using Generative AI Models: Create Your Own Chatbot!
    4 projects | dev.to | 8 Oct 2024
    To interact with the OpenAI API, you will install the openai package:
  • Exploring Job Market for Software Engineers
    2 projects | dev.to | 19 Sep 2024
    Python was chosen for its versatile libraries, particularly linkedin_jobs_scraper and openai. These packages streamlined the scraping and processing of job data.
  • OpenAI adds new o1 models
    1 project | news.ycombinator.com | 12 Sep 2024
  • LLM Fine-Tuning: Domain Embeddings with GPT-3
    1 project | dev.to | 16 Jun 2024
    The essential library for this project is OpenAI, supported by two helper libraries. Install them with the poetry dependency manager a shown:
  • The Stainless SDK Generator
    10 projects | news.ycombinator.com | 24 Apr 2024

jsii

Posts with mentions or reviews of jsii. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-11-25.
  • Jsii – Interact with JavaScript classes in any language
    1 project | news.ycombinator.com | 1 Jul 2025
  • AWS Cloud Development Kit (CDK) vs. Terraform
    2 projects | dev.to | 25 Nov 2024
    There is no functional difference between the different languages, so your choice of language does not limit your features. Under the hood, AWS CDK uses a tool named jsii. It allows for class libraries written in JavaScript/TypeScript to be used from other languages, enabling the AWS CDK team to provide many languages with the same functionality.
  • PeachPie Compiler: Compile and run PHP on top of .NET runtime
    4 projects | news.ycombinator.com | 8 Oct 2024
    May also be useful for creating automatic language support from a single codebase. For example, Amazon uses JSII to build a typescript library into Python, Go, dotnet, etc.

    Maybe this tooling will help add PHP to that list.

    That way you are not maintaining 6 codebases.

    https://github.com/aws/jsii

  • My Journey with AWS CDK and Java: What You Need to Know
    5 projects | dev.to | 2 Sep 2024
    Depending on the type of infrastructure or third party services you’re planning to use, you might not be able to use all available constructs. For instance the constructs maintained by DataDog are only available in Typescript, Python and Go. In my personal experience though, most construct developers are open to support Java. Third party constructs are based on projen and jsii, which means that adding a Java based version is most of the time a matter of configuration in the package.json file of the project.
  • The Stainless SDK Generator
    10 projects | news.ycombinator.com | 24 Apr 2024
    What about jsii? The technology behind AWS sdks: https://aws.github.io/jsii/

    Is Stainless similar, different?

  • AWS Makes Cloud Formation Stack Creation Up to 40% Faster
    2 projects | news.ycombinator.com | 18 Mar 2024
    The libraries for other supported languages of CDK are built as wrappers for underlying JS or maybe TS code via https://github.com/aws/jsii

    So all the core CDK code is written first in JS/TS and then stubs for the other languages are added

    Unfortunately this is often done without consideration for how the other supported langs actually work, and artefacts of e.g. JS lack of support for kwargs leak through

    This is why e.g. the typing in CDK Python is completely broken - pretty much uniformly the concrete types like "Resource" don't implement their corresponding interface like "IResource" (to a type checker)

    (There are many other typing niggles like this but that's the most egregious and pervasive one)

    At the end of the day, having to explicitly cast concrete types as their interface to satisfy type checker is a minor annoyance, albeit a stupid one that could have been avoided with more care in the core library.

    I could live with that, but I encountered so many bugs and issues trying to use CDK on current project that it's now much clearer to me why every company I worked at previously was using Terraform.

    Pretty sure some of those issues are ultimately CloudFormation ones. The cumbersome CF > CDK JS > CDK Python stack is great for obfuscating errors and making debugging hard or impossible though.

    Pulumi do something similar, albeit with Go as the core language and Terraform underneath. From what I've seen with a little use they have a much more successful result though, Pulumi Python was not a complete mess, and deploys faster and more reliable with better error feedback. I guess they just took more care to get it right.

  • Infrastructure Manager: Provision Google Cloud Resources with Terraform
    1 project | news.ycombinator.com | 17 Sep 2023
    Every version of the CDK uses an interop layer and runs on top of the Typescript version

    https://github.com/aws/jsii

    And as far as TF supports services before CFT. Guess which is easier for an AWS employee to do - getting the CF service team to support a new service or just contribute to Terraform’s open source project?

    I know of at least one service where the service team introduced the needed APIs and then an employee of AWS wrote the TF provider and contributed to the project before AWS’s own internal team added it to CFT.

    Source: former AWS ProServe employee

  • JSii allows code in any language to naturally interact with JavaScript classes
    1 project | news.ycombinator.com | 20 Jun 2023
  • Cloud, why so difficult? 🤷‍♀️
    6 projects | dev.to | 22 May 2023
    To "meet developers where they are" is a beautiful tenet of AWS, and of the CDK, and inspired us to create awesome technology such as JSII and constructs.
  • Automating AWS API gateways v1 REST
    5 projects | /r/serverless | 30 Apr 2023
    Yeah both CDKTF and Pulumi piggyback on JSII, a class translator that supports the languages you've mentioned, which was used as a building base for CDK.

What are some alternatives?

When comparing openai-python and jsii you can also consider the following projects:

Awesome-LLMOps - An awesome & curated list of best LLMOps tools for developers

aws-sdk-js-v3 - Modularized AWS SDK for JavaScript.

maelstrom - A workbench for writing toy implementations of distributed systems.

aws-cdk-rfcs - RFCs for the AWS CDK

openai-node - Official JavaScript / TypeScript library for the OpenAI API

projen - Rapidly build modern applications with advanced configuration management

Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured

Did you know that Python is
the 2nd most popular programming language
based on number of references?