
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
quasar-client
Advanced tools
pip install quasar-client
from quasar_client import Quasar
quasar_base = "URL for Quasar-compatible server"
quasar = Quasar(quasar_base=quasar_base)
# Use OpenAI-compatible interfaces...
chat_completion = quasar.chat.completions.create(
messages=[
{
"role": "user",
"content": "Hello quasar",
}
],
model="gpt-3.5-turbo",
)
# Use Quasar-specific interfaces like NER...
entities = quasar.tagger.tag(
task="ner",
text="Yurts Technologies is based in SF."
)
Quasar provides a convenient interface for common RAG APIs. In addition to the OpenAI APIs, the client supports:
For developers looking to leverage asynchronous programming for improved performance and non-blocking IO operations, Quasar introduces async support for its APIs. This allows you to efficiently handle large volumes of requests and data processing in a non-blocking manner.
Below is an example of how to use the asynchronous interface for embedding texts:
from quasar_client import AsyncQuasar
quasar_base = "URL for Quasar-compatible server"
quasar = AsyncQuasar(quasar_base=quasar_base)
# Asynchronously embed texts
async def embed_texts(texts):
embeddings = await quasar.embedding.embed(texts=texts)
return embeddings
# Example texts
texts = ["Hello, world!", "How are you?"]
# Remember to run this in an async context
This async support ensures that your application can scale more efficiently, handling concurrent operations without the need for complex threading or multiprocessing setups.
Quasar provides both synchronous and asynchronous resource classes to cater to different use cases and preferences. Whether you prefer the simplicity of synchronous code or the efficiency of asynchronous operations, Quasar has you covered.
# Synchronous Embedding Resource Class
class SyncEmbeddingResource(SyncResource):
...
# Asynchronous Embedding Resource Class
class AsyncEmbeddingResource(AsyncResource):
...
FAQs
Legion Intelligence Python ML Inference Client
We found that quasar-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.