![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Node.js bindings for the C++ API of the librdkafka client for Apache Kafka messaging system. The library binds to the Producer
and high-level KafkaConsumer
and tries to mimic the API of librdkafka
, returning promises where appropriate. This client requires Apache Kafka >0.9 and node.js >4
Example usage:
const kafka = require('rdkafka');
const producer = new kafka.Producer({
'metadata.broker.list': 'localhost:9092'
});
producer.produce('example_topic', 0, 'Test message')
.then(() => {
const consumer = new kafka.KafkaConsumer({
'metadata.broker.list': 'localhost:9092',
'group.id': 'my_group_id',
'fetch.wait.max.ms': 1,
'fetch.min.bytes': 1,
'queue.buffering.max.ms': 1,
'enable.auto.commit': false
});
consumer.subscribe([ 'example_topic' ]);
return consumer.consume()
.then((message) => {
console.log(`Got a message: \n` +
` topic: ${message.topicName}\n` +
` partition: ${message.partition}\n` +
` offset: ${message.offset}\n` +
` payload: ${message.payload.toString()}\n`);
const commitRequest = new kafka.TopicPartition(message.topic,
message.partition,
message.offset + 1);
return consumer.commit([ commitRequest ]);
})
.then(() => {
producer.close();
consumer.close();
});
});
Can be found here
binding.gyp
supports buidling with the local copy of librdkafka in
deps/librdkafka, or on Linux with a globally installed librdkafka binaries and
headers.
Building with the local copy of librdkafka is the default. Just do
git submodule update --init
node-gyp configure
node-gyp build
To build against a globally installed librdkafka (e.g. one installed with .deb packages), do
node-gyp --BUILD_LIBRDKAKFA=0 build
FAQs
Direct node wrappers over C++ librdkafka API
The npm package rdkafka receives a total of 0 weekly downloads. As such, rdkafka popularity was classified as not popular.
We found that rdkafka demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.