Franz is a client that allows you to use all of your instant messaging apps on one single interface. For now, the list of supported apps includes: Slack, Whatsapp, WeChat, HipChat, Facebook, Messenger, Telegram, Google Hangouts, GroupMe, Skype and Grape.
The only thing you'll have to do to start using a Franz messaging service is log in with your user account. For example, if you want to use Telegram all you'll need to do is type in your phone number. For Facebook, just put in your account and password, and for Whatsapp, you can scan a QR code.
Franz's interface is very comfortable for managing several accounts, given that each of them appears in a different tab. On top of that, thanks to notifications, you'll be able to see if there are any unread messages in any of the apps.
Franz is a very interesting program for any user that spends a significant amount of time on their PC. Thanks to Franz you'll be able to respond to any message regardless of where you got it. And you'll get to do it without checking your phone or having to run a bunch of different clients from your PC.
The only thing you'll have to do to start using a Franz messaging service is log in with your user account. For example, if you want to use Telegram all you'll need to do is type in your phone number. For Facebook, just put in your account and password, and for Whatsapp, you can scan a QR code.
Franz's interface is very comfortable for managing several accounts, given that each of them appears in a different tab. On top of that, thanks to notifications, you'll be able to see if there are any unread messages in any of the apps.
Franz is a very interesting program for any user that spends a significant amount of time on their PC. Thanks to Franz you'll be able to respond to any message regardless of where you got it. And you'll get to do it without checking your phone or having to run a bunch of different clients from your PC.
Franz supports a great variety of business and private messaging & chat services like Slack, WhatsApp, WeChat, Messenger, Telegram, Google Hangouts, Skype, Zendesk and many more. It does not matter if you just want to keep in touch with your friends or are managing a multi-seat customer care team. Squeeze 2019 setlist. Franz got you covered. Unduh versi terbaru Franz untuk Windows. Satu-satunya klien yang Anda butuhkan untuk semua aplikasi olah pesan. 1 2.0 (0.9.10 beta) 42.53MB.
By Erika OkumuraLatest version Released:
Event broker built on top of kafka and rabbitmq; used to handle micro services message exchange.
Project description
# Franz
A lite wrapper around [Kafka](https://kafka.apache.org/) and [RabbitMQ](https://www.rabbitmq.com/).
# Usage
## Installation
- `pip install franz` (recommended)
- `pip -e [email protected]:eshares/franz.git@master#egg=franz`
- Change `@master` to a version or commit if required.
## RabbitMQ
### Sending a message
```python
import random
import time
import franz
class FranzData(franz.FranzEvent):
def serialize(self):
return {'data': time.time()}
with franz.RabbitProducer(exchange='topic_link') as p:
while True:
key = random.choice(['hello.world', 'hello.bob'])
p.send_message(key, FranzData())
time.sleep(1)
```
### Consuming messages
```python
import franz
def callback(ch, method, properties, body):
print('[+] {} from {}'.format(body, method.routing_key))
with franz.RabbitConsumer('hello.*', exchange='topic_link') as c:
c.consume_messages(callback)
```
## Kafka
### Sending a message
```python
import franz
from myapp.models import SomeModel # SomeModel must inherit `franz.FranzEvent`
instance = SomeModel.objects.get(pk=1)
producer = franz.KafkaProducer()
producer.send_message('TopicA', instance)
```
### Consuming messages
```python
import franz
consumer = franz.KafkaConsumer('TopicA')
for message in consumer:
print(message.value)
```
### Kafka/Docker Resources
- [Docker image](https://github.com/spotify/docker-kafka)
- [Helpful article](https://howtoprogram.xyz/2016/07/21/using-apache-kafka-docker/)
- Create topic
```
./kafka-topics.sh --create --topic test --replication-factor 1 --partitions 1 --zookeeper 0.0.0.0:2181
```
- Consuming
```
./kafka-console-consumer.sh --topic test --from-beginning --zookeeper 0.0.0.0:2181
```
- Producing
```
./kafka-console-producer.sh --topic test --broker-list 0.0.0.0:9092
```
# Testing
```bash
# setup versions
pyenv install 3.5.3
pyenv install 3.6.3
pyenv install 3.7.0
pyenv virtualenv franz 3.5.3
pyenv local franz 3.5.3 3.6.3 3.7.0
pip install -r requirements-dev.txt
# run tests (python 3.5, 3.6, 3.7)
tox
```
A lite wrapper around [Kafka](https://kafka.apache.org/) and [RabbitMQ](https://www.rabbitmq.com/).
# Usage
## Installation
- `pip install franz` (recommended)
- `pip -e [email protected]:eshares/franz.git@master#egg=franz`
- Change `@master` to a version or commit if required.
## RabbitMQ
### Sending a message
```python
import random
import time
import franz
class FranzData(franz.FranzEvent):
def serialize(self):
return {'data': time.time()}
with franz.RabbitProducer(exchange='topic_link') as p:
while True:
key = random.choice(['hello.world', 'hello.bob'])
p.send_message(key, FranzData())
time.sleep(1)
```
### Consuming messages
```python
import franz
def callback(ch, method, properties, body):
print('[+] {} from {}'.format(body, method.routing_key))
with franz.RabbitConsumer('hello.*', exchange='topic_link') as c:
c.consume_messages(callback)
```
## Kafka
### Sending a message
```python
import franz
from myapp.models import SomeModel # SomeModel must inherit `franz.FranzEvent`
instance = SomeModel.objects.get(pk=1)
producer = franz.KafkaProducer()
producer.send_message('TopicA', instance)
```
### Consuming messages
```python
import franz
consumer = franz.KafkaConsumer('TopicA')
for message in consumer:
print(message.value)
```
### Kafka/Docker Resources
- [Docker image](https://github.com/spotify/docker-kafka)
- [Helpful article](https://howtoprogram.xyz/2016/07/21/using-apache-kafka-docker/)
- Create topic
```
./kafka-topics.sh --create --topic test --replication-factor 1 --partitions 1 --zookeeper 0.0.0.0:2181
```
- Consuming
```
./kafka-console-consumer.sh --topic test --from-beginning --zookeeper 0.0.0.0:2181
```
- Producing
```
./kafka-console-producer.sh --topic test --broker-list 0.0.0.0:9092
```
# Testing
```bash
# setup versions
pyenv install 3.5.3
pyenv install 3.6.3
pyenv install 3.7.0
pyenv virtualenv franz 3.5.3
pyenv local franz 3.5.3 3.6.3 3.7.0
pip install -r requirements-dev.txt
# run tests (python 3.5, 3.6, 3.7)
tox
```
Release historyRelease notifications | RSS feed
0.0.10
0.0.9
0.0.8
0.0.7
0.0.2
0.0.1
Download files
Marked 2 5 18 – easily preview your markdown documents. Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size franz-0.0.11.tar.gz (6.5 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for franz-0.0.11.tar.gz
Franz 0 9 10 1
Algorithm | Hash digest |
---|---|
SHA256 | 5620600b411103b0c79526336b8eaef773b5eb1d8e9e0fb4bdc01ebd6bf9c2a7 |
MD5 | 33bf0648155c8654a1b58cbd0d96b911 |
BLAKE2-256 | aad1ab06bf664b057f112579ca80c683936785a76870d378033ae5a0f2bfbace |