obsei


Nameobsei JSON
Version 0.0.15 PyPI version JSON
download
home_page
SummaryObsei is an automation tool for text analysis need
upload_time2023-12-31 08:47:42
maintainer
docs_urlNone
author
requires_python>=3.8
licenseApache Version 2.0
keywords automation cognitive-automation customer-experience customer-feedback customer-feedback-analysis customer-support low-code market-research nlp obsei oraika social-listening workflow
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
    <img src="https://raw.githubusercontent.com/obsei/obsei-resources/master/images/obsei-flyer.png" />
</p>

---
<p align="center">
    <a href="https://www.oraika.com">
            <img src="https://static.wixstatic.com/media/59bc4e_971f153f107e48c7912b9b2d4cd1b1a4~mv2.png/v1/fill/w_177,h_49,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/3_edited.png" />
    </a>
</p>
<p align="center">
    <a href="https://github.com/obsei/obsei/actions">
        <img alt="Test" src="https://github.com/obsei/obsei/workflows/CI/badge.svg?branch=master">
    </a>
    <a href="https://github.com/obsei/obsei/blob/master/LICENSE">
        <img alt="License" src="https://img.shields.io/pypi/l/obsei">
    </a>
    <a href="https://pypi.org/project/obsei">
        <img src="https://img.shields.io/pypi/pyversions/obsei" alt="PyPI - Python Version" />
    </a>
    <a href="https://pypi.org/project/obsei/">
        <img alt="Release" src="https://img.shields.io/pypi/v/obsei">
    </a>
    <a href="https://pepy.tech/project/obsei">
        <img src="https://pepy.tech/badge/obsei/month" alt="Downloads" />
    </a>
    <a href="https://huggingface.co/spaces/obsei/obsei-demo">
        <img src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue" alt="HF Spaces" />
    </a>
    <a href="https://github.com/obsei/obsei/commits/master">
        <img alt="Last commit" src="https://img.shields.io/github/last-commit/obsei/obsei">
    </a>
    <a href="https://github.com/obsei/obsei">
        <img alt="Github stars" src="https://img.shields.io/github/stars/obsei/obsei?style=social">
    </a>
    <a href="https://www.youtube.com/channel/UCqdvgro1BzU13tkAfX3jCJA">
        <img alt="YouTube Channel Subscribers" src="https://img.shields.io/youtube/channel/subscribers/UCqdvgro1BzU13tkAfX3jCJA?style=social">
    </a>
    <a href="https://join.slack.com/t/obsei-community/shared_invite/zt-r0wnuz02-FAkAmhTAUoc6pD4SLB9Ikg">
        <img src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/Slack_join.svg" height="30">
    </a>
    <a href="https://twitter.com/ObseiAI">
        <img src="https://img.shields.io/twitter/follow/ObseiAI?style=social">
    </a>
</p>

---

![](https://raw.githubusercontent.com/obsei/obsei-resources/master/gifs/obsei_flow.gif)

---

<span style="color:red">
<b>Note</b>: Obsei is still in alpha stage hence carefully use it in Production. Also, as it is constantly undergoing development hence master branch may contain many breaking changes. Please use released version.
</span>

---

**Obsei** (pronounced "Ob see" | /Ι™b-'sΔ“/) is an open-source, low-code, AI powered automation tool. _Obsei_ consists of -

- **Observer**: Collect unstructured data from various sources like tweets from Twitter, Subreddit comments on Reddit, page post's comments from Facebook, App Stores reviews, Google reviews, Amazon reviews, News, Website, etc.
- **Analyzer**: Analyze unstructured data collected with various AI tasks like classification, sentiment analysis, translation, PII, etc.
- **Informer**: Send analyzed data to various destinations like ticketing platforms, data storage, dataframe, etc so that the user can take further actions and perform analysis on the data.

All the Observers can store their state in databases (Sqlite, Postgres, MySQL, etc.), making Obsei suitable for scheduled jobs or serverless applications.

![Obsei diagram](https://raw.githubusercontent.com/obsei/obsei-resources/master/images/Obsei_diagram.png)

### Future direction -

- Text, Image, Audio, Documents and Video oriented workflows
- Collect data from every possible private and public channels
- Add every possible workflow to an AI downstream application to automate manual cognitive workflows

## Use cases

_Obsei_ use cases are following, but not limited to -

- Social listening: Listening about social media posts, comments, customer feedback, etc.
- Alerting/Notification: To get auto-alerts for events such as customer complaints, qualified sales leads, etc.
- Automatic customer issue creation based on customer complaints on Social Media, Email, etc.
- Automatic assignment of proper tags to tickets based content of customer complaint for example login issue, sign up issue, delivery issue, etc.
- Extraction of deeper insight from feedbacks on various platforms
- Market research
- Creation of dataset for various AI tasks
- Many more based on creativity πŸ’‘

## Installation

### Prerequisite

Install the following (if not present already) -

- Install [Python 3.7+](https://www.python.org/downloads/)
- Install [PIP](https://pip.pypa.io/en/stable/installing/)

### Install Obsei

You can install Obsei either via PIP or Conda based on your preference.
To install latest released version -

```shell
pip install obsei[all]
```

Install from master branch (if you want to try the latest features) -

```shell
git clone https://github.com/obsei/obsei.git
cd obsei
pip install --editable .[all]
```
  
Note: `all` option will install all the dependencies which might not be needed for your workflow, alternatively 
following options are available to install minimal dependencies as per need -
 - `pip install obsei[source]`: To install dependencies related to all observers
 - `pip install obsei[sink]`: To install dependencies related to all informers
 - `pip install obsei[analyzer]`:  To install dependencies related to all analyzers, it will install pytorch as well
 - `pip install obsei[twitter-api]`: To install dependencies related to Twitter observer
 - `pip install obsei[google-play-scraper]`: To install dependencies related to Play Store review scrapper observer
 - `pip install obsei[google-play-api]`: To install dependencies related to Google official play store review API based observer
 - `pip install obsei[app-store-scraper]`: To install dependencies related to Apple App Store review scrapper observer
 - `pip install obsei[reddit-scraper]`: To install dependencies related to Reddit post and comment scrapper observer
 - `pip install obsei[reddit-api]`: To install dependencies related to Reddit official api based observer
 - `pip install obsei[pandas]`: To install dependencies related to TSV/CSV/Pandas based observer and informer
 - `pip install obsei[google-news-scraper]`: To install dependencies related to Google news scrapper observer
 - `pip install obsei[facebook-api]`: To install dependencies related to Facebook official page post and comments api based observer
 - `pip install obsei[atlassian-api]`: To install dependencies related to Jira official api based informer
 - `pip install obsei[elasticsearch]`: To install dependencies related to elasticsearch informer
 - `pip install obsei[slack-api]`:To install dependencies related to Slack official api based informer

You can also mix multiple dependencies together in single installation command. For example to install dependencies 
Twitter observer, all analyzer, and Slack informer use following command -
```shell
pip install obsei[twitter-api, analyzer, slack-api]
```


## How to use

Expand the following steps and create a workflow -

<details><summary><b>Step 1: Configure Source/Observer</b></summary>

<table ><tbody ><tr></tr><tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/twitter.png" width="20" height="20"><b>Twitter</b></summary><hr>

```python
from obsei.source.twitter_source import TwitterCredentials, TwitterSource, TwitterSourceConfig

# initialize twitter source config
source_config = TwitterSourceConfig(
   keywords=["issue"], # Keywords, @user or #hashtags
   lookup_period="1h", # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)
   cred_info=TwitterCredentials(
       # Enter your twitter consumer key and secret. Get it from https://developer.twitter.com/en/apply-for-access
       consumer_key="<twitter_consumer_key>",
       consumer_secret="<twitter_consumer_secret>",
       bearer_token='<ENTER BEARER TOKEN>',
   )
)

# initialize tweets retriever
source = TwitterSource()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/Youtube.png" width="20" height="20"><b>Youtube Scrapper</b></summary><hr>

```python
from obsei.source.youtube_scrapper import YoutubeScrapperSource, YoutubeScrapperConfig

# initialize Youtube source config
source_config = YoutubeScrapperConfig(
    video_url="https://www.youtube.com/watch?v=uZfns0JIlFk", # Youtube video URL
    fetch_replies=True, # Fetch replies to comments
    max_comments=10, # Total number of comments and replies to fetch
    lookup_period="1Y", # Lookup period from current time, format: `<number><d|h|m|M|Y>` (day|hour|minute|month|year)
)

# initialize Youtube comments retriever
source = YoutubeScrapperSource()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/facebook.png" width="20" height="20"><b>Facebook</b></summary><hr>

```python
from obsei.source.facebook_source import FacebookCredentials, FacebookSource, FacebookSourceConfig

# initialize facebook source config
source_config = FacebookSourceConfig(
   page_id="110844591144719", # Facebook page id, for example this one for Obsei
   lookup_period="1h", # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)
   cred_info=FacebookCredentials(
       # Enter your facebook app_id, app_secret and long_term_token. Get it from https://developers.facebook.com/apps/
       app_id="<facebook_app_id>",
       app_secret="<facebook_app_secret>",
       long_term_token="<facebook_long_term_token>",
   )
)

# initialize facebook post comments retriever
source = FacebookSource()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/gmail.png" width="20" height="20"><b>Email</b></summary><hr>

```python
from obsei.source.email_source import EmailConfig, EmailCredInfo, EmailSource

# initialize email source config
source_config = EmailConfig(
   # List of IMAP servers for most commonly used email providers
   # https://www.systoolsgroup.com/imap/
   # Also, if you're using a Gmail account then make sure you allow less secure apps on your account -
   # https://myaccount.google.com/lesssecureapps?pli=1
   # Also enable IMAP access -
   # https://mail.google.com/mail/u/0/#settings/fwdandpop
   imap_server="imap.gmail.com", # Enter IMAP server
   cred_info=EmailCredInfo(
       # Enter your email account username and password
       username="<email_username>",
       password="<email_password>"
   ),
   lookup_period="1h" # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)
)

# initialize email retriever
source = EmailSource()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/google_maps.png" width="20" height="20"><b>Google Maps Reviews Scrapper</b></summary><hr>

```python
from obsei.source.google_maps_reviews import OSGoogleMapsReviewsSource, OSGoogleMapsReviewsConfig

# initialize Outscrapper Maps review source config
source_config = OSGoogleMapsReviewsConfig(
   # Collect API key from https://outscraper.com/
   api_key="<Enter Your API Key>",
   # Enter Google Maps link or place id
   # For example below is for the "Taj Mahal"
   queries=["https://www.google.co.in/maps/place/Taj+Mahal/@27.1751496,78.0399535,17z/data=!4m5!3m4!1s0x39747121d702ff6d:0xdd2ae4803f767dde!8m2!3d27.1751448!4d78.0421422"],
   number_of_reviews=10,
)


# initialize Outscrapper Maps review retriever
source = OSGoogleMapsReviewsSource()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/appstore.png" width="20" height="20"><b>AppStore Reviews Scrapper</b></summary><hr>

```python
from obsei.source.appstore_scrapper import AppStoreScrapperConfig, AppStoreScrapperSource

# initialize app store source config
source_config = AppStoreScrapperConfig(
   # Need two parameters app_id and country.
   # `app_id` can be found at the end of the url of app in app store.
   # For example - https://apps.apple.com/us/app/xcode/id497799835
   # `310633997` is the app_id for xcode and `us` is country.
   countries=["us"],
   app_id="310633997",
   lookup_period="1h" # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)
)


# initialize app store reviews retriever
source = AppStoreScrapperSource()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/playstore.png" width="20" height="20"><b>Play Store Reviews Scrapper</b></summary><hr>

```python
from obsei.source.playstore_scrapper import PlayStoreScrapperConfig, PlayStoreScrapperSource

# initialize play store source config
source_config = PlayStoreScrapperConfig(
   # Need two parameters package_name and country.
   # `package_name` can be found at the end of the url of app in play store.
   # For example - https://play.google.com/store/apps/details?id=com.google.android.gm&hl=en&gl=US
   # `com.google.android.gm` is the package_name for xcode and `us` is country.
   countries=["us"],
   package_name="com.google.android.gm",
   lookup_period="1h" # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)
)

# initialize play store reviews retriever
source = PlayStoreScrapperSource()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/reddit.png" width="20" height="20"><b>Reddit</b></summary><hr>

```python
from obsei.source.reddit_source import RedditConfig, RedditSource, RedditCredInfo

# initialize reddit source config
source_config = RedditConfig(
   subreddits=["wallstreetbets"], # List of subreddits
   # Reddit account username and password
   # You can also enter reddit client_id and client_secret or refresh_token
   # Create credential at https://www.reddit.com/prefs/apps
   # Also refer https://praw.readthedocs.io/en/latest/getting_started/authentication.html
   # Currently Password Flow, Read Only Mode and Saved Refresh Token Mode are supported
   cred_info=RedditCredInfo(
       username="<reddit_username>",
       password="<reddit_password>"
   ),
   lookup_period="1h" # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)
)

# initialize reddit retriever
source = RedditSource()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/reddit.png" width="20" height="20"><b>Reddit Scrapper</b></summary><hr>

<i>Note: Reddit heavily rate limit scrappers, hence use it to fetch small data during long period</i>

```python
from obsei.source.reddit_scrapper import RedditScrapperConfig, RedditScrapperSource

# initialize reddit scrapper source config
source_config = RedditScrapperConfig(
   # Reddit subreddit, search etc rss url. For proper url refer following link -
   # Refer https://www.reddit.com/r/pathogendavid/comments/tv8m9/pathogendavids_guide_to_rss_and_reddit/
   url="https://www.reddit.com/r/wallstreetbets/comments/.rss?sort=new",
   lookup_period="1h" # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)
)

# initialize reddit retriever
source = RedditScrapperSource()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/googlenews.png" width="20" height="20"><b>Google News</b></summary><hr>

```python
from obsei.source.google_news_source import GoogleNewsConfig, GoogleNewsSource

# initialize Google News source config
source_config = GoogleNewsConfig(
   query='bitcoin',
   max_results=5,
   # To fetch full article text enable `fetch_article` flag
   # By default google news gives title and highlight
   fetch_article=True,
   # proxy='http://127.0.0.1:8080'
)

# initialize Google News retriever
source = GoogleNewsSource()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/webcrawler.png" width="20" height="20"><b>Web Crawler</b></summary><hr>

```python
from obsei.source.website_crawler_source import TrafilaturaCrawlerConfig, TrafilaturaCrawlerSource

# initialize website crawler source config
source_config = TrafilaturaCrawlerConfig(
   urls=['https://obsei.github.io/obsei/']
)

# initialize website text retriever
source = TrafilaturaCrawlerSource()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/pandas.svg" width="20" height="20"><b>Pandas DataFrame</b></summary><hr>

```python
import pandas as pd
from obsei.source.pandas_source import PandasSource, PandasSourceConfig

# Initialize your Pandas DataFrame from your sources like csv, excel, sql etc
# In following example we are reading csv which have two columns title and text
csv_file = "https://raw.githubusercontent.com/deepset-ai/haystack/master/tutorials/small_generator_dataset.csv"
dataframe = pd.read_csv(csv_file)

# initialize pandas sink config
sink_config = PandasSourceConfig(
   dataframe=dataframe,
   include_columns=["score"],
   text_columns=["name", "degree"],
)

# initialize pandas sink
sink = PandasSource()
```

</details>
</td>
</tr>
</tbody>
</table>

</details>

<details><summary><b>Step 2: Configure Analyzer</b></summary>

<i>Note: To run transformers in an offline mode, check [transformers offline mode](https://huggingface.co/transformers/installation.html#offline-mode).</i>

<p>Some analyzer support GPU and to utilize pass <b>device</b> parameter.
List of possible values of <b>device</b> parameter (default value <i>auto</i>):
<ol>
    <li> <b>auto</b>: GPU (cuda:0) will be used if available otherwise CPU will be used
    <li> <b>cpu</b>: CPU will be used
    <li> <b>cuda:{id}</b> - GPU will be used with provided CUDA device id
</ol>
</p>

<table ><tbody ><tr></tr><tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/classification.png" width="20" height="20"><b>Text Classification</b></summary><hr>

Text classification: Classify text into user provided categories.

```python
from obsei.analyzer.classification_analyzer import ClassificationAnalyzerConfig, ZeroShotClassificationAnalyzer

# initialize classification analyzer config
# It can also detect sentiments if "positive" and "negative" labels are added.
analyzer_config=ClassificationAnalyzerConfig(
   labels=["service", "delay", "performance"],
)

# initialize classification analyzer
# For supported models refer https://huggingface.co/models?filter=zero-shot-classification
text_analyzer = ZeroShotClassificationAnalyzer(
   model_name_or_path="typeform/mobilebert-uncased-mnli",
   device="auto"
)
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/sentiment.png" width="20" height="20"><b>Sentiment Analyzer</b></summary><hr>

Sentiment Analyzer: Detect the sentiment of the text. Text classification can also perform sentiment analysis but if you don't want to use heavy-duty NLP model then use less resource hungry dictionary based Vader Sentiment detector.

```python
from obsei.analyzer.sentiment_analyzer import VaderSentimentAnalyzer

# Vader does not need any configuration settings
analyzer_config=None

# initialize vader sentiment analyzer
text_analyzer = VaderSentimentAnalyzer()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/ner.png" width="20" height="20"><b>NER Analyzer</b></summary><hr>

NER (Named-Entity Recognition) Analyzer: Extract information and classify named entities mentioned in text into pre-defined categories such as person names, organizations, locations, medical codes, time expressions, quantities, monetary values, percentages, etc

```python
from obsei.analyzer.ner_analyzer import NERAnalyzer

# NER analyzer does not need configuration settings
analyzer_config=None

# initialize ner analyzer
# For supported models refer https://huggingface.co/models?filter=token-classification
text_analyzer = NERAnalyzer(
   model_name_or_path="elastic/distilbert-base-cased-finetuned-conll03-english",
   device = "auto"
)
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/translator.png" width="20" height="20"><b>Translator</b></summary><hr>

```python
from obsei.analyzer.translation_analyzer import TranslationAnalyzer

# Translator does not need analyzer config
analyzer_config = None

# initialize translator
# For supported models refer https://huggingface.co/models?pipeline_tag=translation
analyzer = TranslationAnalyzer(
   model_name_or_path="Helsinki-NLP/opus-mt-hi-en",
   device = "auto"
)
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/pii.png" width="20" height="20"><b>PII Anonymizer</b></summary><hr>

```python
from obsei.analyzer.pii_analyzer import PresidioEngineConfig, PresidioModelConfig, \
   PresidioPIIAnalyzer, PresidioPIIAnalyzerConfig

# initialize pii analyzer's config
analyzer_config = PresidioPIIAnalyzerConfig(
   # Whether to return only pii analysis or anonymize text
   analyze_only=False,
   # Whether to return detail information about anonymization decision
   return_decision_process=True
)

# initialize pii analyzer
analyzer = PresidioPIIAnalyzer(
   engine_config=PresidioEngineConfig(
       # spacy and stanza nlp engines are supported
       # For more info refer
       # https://microsoft.github.io/presidio/analyzer/developing_recognizers/#utilize-spacy-or-stanza
       nlp_engine_name="spacy",
       # Update desired spacy model and language
       models=[PresidioModelConfig(model_name="en_core_web_lg", lang_code="en")]
   )
)
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/dummy.png" width="20" height="20"><b>Dummy Analyzer</b></summary><hr>

Dummy Analyzer: Does nothing. Its simply used for transforming the input (TextPayload) to output (TextPayload) and adding the user supplied dummy data.

```python
from obsei.analyzer.dummy_analyzer import DummyAnalyzer, DummyAnalyzerConfig

# initialize dummy analyzer's configuration settings
analyzer_config = DummyAnalyzerConfig()

# initialize dummy analyzer
analyzer = DummyAnalyzer()
```

</details>
</td>
</tr>
</tbody>
</table>

</details>

<details><summary><b>Step 3: Configure Sink/Informer</b></summary>

<table ><tbody ><tr></tr><tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/slack.svg" width="25" height="25"><b>Slack</b></summary><hr>

```python
from obsei.sink.slack_sink import SlackSink, SlackSinkConfig

# initialize slack sink config
sink_config = SlackSinkConfig(
   # Provide slack bot/app token
   # For more detail refer https://slack.com/intl/en-de/help/articles/215770388-Create-and-regenerate-API-tokens
   slack_token="<Slack_app_token>",
   # To get channel id refer https://stackoverflow.com/questions/40940327/what-is-the-simplest-way-to-find-a-slack-team-id-and-a-channel-id
   channel_id="C01LRS6CT9Q"
)

# initialize slack sink
sink = SlackSink()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/zendesk.png" width="20" height="20"><b>Zendesk</b></summary><hr>

```python
from obsei.sink.zendesk_sink import ZendeskSink, ZendeskSinkConfig, ZendeskCredInfo

# initialize zendesk sink config
sink_config = ZendeskSinkConfig(
   # provide zendesk domain
   domain="zendesk.com",
   # provide subdomain if you have one
   subdomain=None,
   # Enter zendesk user details
   cred_info=ZendeskCredInfo(
       email="<zendesk_user_email>",
       password="<zendesk_password>"
   )
)

# initialize zendesk sink
sink = ZendeskSink()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/jira.png" width="20" height="20"><b>Jira</b></summary><hr>

```python
from obsei.sink.jira_sink import JiraSink, JiraSinkConfig

# For testing purpose you can start jira server locally
# Refer https://developer.atlassian.com/server/framework/atlassian-sdk/atlas-run-standalone/

# initialize Jira sink config
sink_config = JiraSinkConfig(
   url="http://localhost:2990/jira", # Jira server url
    # Jira username & password for user who have permission to create issue
   username="<username>",
   password="<password>",
   # Which type of issue to be created
   # For more information refer https://support.atlassian.com/jira-cloud-administration/docs/what-are-issue-types/
   issue_type={"name": "Task"},
   # Under which project issue to be created
   # For more information refer https://support.atlassian.com/jira-software-cloud/docs/what-is-a-jira-software-project/
   project={"key": "CUS"},
)

# initialize Jira sink
sink = JiraSink()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/elastic.png" width="20" height="20"><b>ElasticSearch</b></summary><hr>

```python
from obsei.sink.elasticsearch_sink import ElasticSearchSink, ElasticSearchSinkConfig

# For testing purpose you can start Elasticsearch server locally via docker
# `docker run -d --name elasticsearch -p 9200:9200 -e "discovery.type=single-node" elasticsearch:8.5.0`

# initialize Elasticsearch sink config
sink_config = ElasticSearchSinkConfig(
   # Elasticsearch server
   hosts="http://localhost:9200",
   # Index name, it will create if not exist
   index_name="test",
)

# initialize Elasticsearch sink
sink = ElasticSearchSink()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/http_api.png" width="20" height="20"><b>Http</b></summary><hr>

```python
from obsei.sink.http_sink import HttpSink, HttpSinkConfig

# For testing purpose you can create mock http server via postman
# For more details refer https://learning.postman.com/docs/designing-and-developing-your-api/mocking-data/setting-up-mock/

# initialize http sink config (Currently only POST call is supported)
sink_config = HttpSinkConfig(
   # provide http server url
   url="https://localhost:8080/api/path",
   # Here you can add headers you would like to pass with request
   headers={
       "Content-type": "application/json"
   }
)

# To modify or converting the payload, create convertor class
# Refer obsei.sink.dailyget_sink.PayloadConvertor for example

# initialize http sink
sink = HttpSink()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/pandas.svg" width="20" height="20"><b>Pandas DataFrame</b></summary><hr>

```python
from pandas import DataFrame
from obsei.sink.pandas_sink import PandasSink, PandasSinkConfig

# initialize pandas sink config
sink_config = PandasSinkConfig(
   dataframe=DataFrame()
)

# initialize pandas sink
sink = PandasSink()
```

</details>
</td>
</tr>
<tr>
<td><details ><summary><img style="vertical-align:middle;margin:2px 10px" src="https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/logger.png" width="20" height="20"><b>Logger</b></summary><hr>

This is useful for testing and dry running the pipeline.

```python
from obsei.sink.logger_sink import LoggerSink, LoggerSinkConfig
import logging
import sys

logger = logging.getLogger("Obsei")
logging.basicConfig(stream=sys.stdout, level=logging.INFO)

# initialize logger sink config
sink_config = LoggerSinkConfig(
   logger=logger,
   level=logging.INFO
)

# initialize logger sink
sink = LoggerSink()
```

</details>
</td>
</tr>
</tbody>
</table>

</details>

<details><summary><b>Step 4: Join and create workflow</b></summary>

`source` will fetch data from the selected source, then feed it to the `analyzer` for processing, whose output we feed into a `sink` to get notified at that sink.

```python
# Uncomment if you want logger
# import logging
# import sys
# logger = logging.getLogger(__name__)
# logging.basicConfig(stream=sys.stdout, level=logging.INFO)

# This will fetch information from configured source ie twitter, app store etc
source_response_list = source.lookup(source_config)

# Uncomment if you want to log source response
# for idx, source_response in enumerate(source_response_list):
#     logger.info(f"source_response#'{idx}'='{source_response.__dict__}'")

# This will execute analyzer (Sentiment, classification etc) on source data with provided analyzer_config
analyzer_response_list = text_analyzer.analyze_input(
    source_response_list=source_response_list,
    analyzer_config=analyzer_config
)

# Uncomment if you want to log analyzer response
# for idx, an_response in enumerate(analyzer_response_list):
#    logger.info(f"analyzer_response#'{idx}'='{an_response.__dict__}'")

# Analyzer output added to segmented_data
# Uncomment to log it
# for idx, an_response in enumerate(analyzer_response_list):
#    logger.info(f"analyzed_data#'{idx}'='{an_response.segmented_data.__dict__}'")

# This will send analyzed output to configure sink ie Slack, Zendesk etc
sink_response_list = sink.send_data(analyzer_response_list, sink_config)

# Uncomment if you want to log sink response
# for sink_response in sink_response_list:
#     if sink_response is not None:
#         logger.info(f"sink_response='{sink_response}'")
```

</details>

<details><summary><b>Step 5: Execute workflow</b></summary>
Copy the code snippets from <b>Steps 1 to 4</b> into a python file, for example <code>example.py</code> and execute the following command -

```shell
python example.py
```

</details>

## Demo

We have a minimal [streamlit](https://streamlit.io/) based UI that you can use to test Obsei.

![Screenshot](https://raw.githubusercontent.com/obsei/obsei-resources/master/images/obsei-ui-demo.png)

### Watch UI demo video

[![Introductory and demo video](https://img.youtube.com/vi/GTF-Hy96gvY/2.jpg)](https://www.youtube.com/watch?v=GTF-Hy96gvY)

Check demo at [![](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue)](https://huggingface.co/spaces/obsei/obsei-demo)

(**Note**: Sometimes the Streamlit demo might not work due to rate limiting, use the docker image (locally) in such cases.)

To test locally, just run

```
docker run -d --name obesi-ui -p 8501:8501 obsei/obsei-ui-demo

# You can find the UI at http://localhost:8501
```

**To run Obsei workflow easily using GitHub Actions (no sign ups and cloud hosting required), refer to this [repo](https://github.com/obsei/demo-workflow-action)**.

## Companies/Projects using Obsei

Here are some companies/projects (alphabetical order) using Obsei. To add your company/project to the list, please raise a PR or contact us via [email](contact@obsei.com).

- [Oraika](https://www.oraika.com): Contextually understand customer feedback
- [1Page](https://www.get1page.com/): Giving a better context in meetings and calls
- [Spacepulse](http://spacepulse.in/): The operating system for spaces
- [Superblog](https://superblog.ai/): A blazing fast alternative to WordPress and Medium
- [Zolve](https://zolve.com/): Creating a financial world beyond borders
- [Utilize](https://www.utilize.app/): No-code app builder for businesses with a deskless workforce

## Articles

<table>
<thead>
<tr class="header">
<th>Sr. No.</th>
<th>Title</th>
<th>Author</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>
    <a href="https://reenabapna.medium.com/ai-based-comparative-customer-feedback-analysis-using-deep-learning-models-def0dc77aaee">AI based Comparative Customer Feedback Analysis Using Obsei</a>
</td>
<td>
    <a href="linkedin.com/in/reena-bapna-66a8691a">Reena Bapna</a>
</td>
</tr>
<tr>
<td>2</td>
<td>
    <a href="https://medium.com/mlearning-ai/linkedin-app-user-feedback-analysis-9c9f98464daa">LinkedIn App - User Feedback Analysis</a>
</td>
<td>
    <a href="http://www.linkedin.com/in/himanshusharmads">Himanshu Sharma</a>
</td>
</tr>
</tbody>
</table>

## Tutorials

<table>
<thead>
<tr class="header">
<th>Sr. No.</th>
<th>Workflow</th>
<th>Colab</th>
<th>Binder</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="2">1</td>
<td colspan="3">Observe app reviews from Google play store, Analyze them by performing text classification and then Inform them on console via logger</td>
</tr>
<tr>
<td>PlayStore Reviews β†’ Classification β†’ Logger</td>
<td>
    <a href="https://colab.research.google.com/github/obsei/obsei/blob/master/tutorials/01_PlayStore_Classification_Logger.ipynb">
        <img alt="Colab" src="https://colab.research.google.com/assets/colab-badge.svg">
    </a>
</td>
<td>
    <a href="https://mybinder.org/v2/gh/obsei/obsei/HEAD?filepath=tutorials%2F01_PlayStore_Classification_Logger.ipynb">
        <img alt="Colab" src="https://mybinder.org/badge_logo.svg">
    </a>
</td>
</tr>
<tr>
<td rowspan="2">2</td>
<td colspan="3">Observe app reviews from Google play store, PreProcess text via various text cleaning functions, Analyze them by performing text classification, Inform them to Pandas DataFrame and store resultant CSV to Google Drive</td>
</tr>
<tr>
<td>PlayStore Reviews β†’ PreProcessing β†’ Classification β†’ Pandas DataFrame β†’ CSV in Google Drive</td>
<td>
    <a href="https://colab.research.google.com/github/obsei/obsei/blob/master/tutorials/02_PlayStore_PreProc_Classification_Pandas.ipynb">
        <img alt="Colab" src="https://colab.research.google.com/assets/colab-badge.svg">
    </a>
</td>
<td>
    <a href="https://mybinder.org/v2/gh/obsei/obsei/HEAD?filepath=tutorials%2F02_PlayStore_PreProc_Classification_Pandas.ipynb">
        <img alt="Colab" src="https://mybinder.org/badge_logo.svg">
    </a>
</td>
</tr>
<tr>
<td rowspan="2">3</td>
<td colspan="3">Observe app reviews from Apple app store, PreProcess text via various text cleaning function, Analyze them by performing text classification, Inform them to Pandas DataFrame and store resultant CSV to Google Drive</td>
</tr>
<tr>
<td>AppStore Reviews β†’ PreProcessing β†’ Classification β†’ Pandas DataFrame β†’ CSV in Google Drive</td>
<td>
    <a href="https://colab.research.google.com/github/obsei/obsei/blob/master/tutorials/03_AppStore_PreProc_Classification_Pandas.ipynb">
        <img alt="Colab" src="https://colab.research.google.com/assets/colab-badge.svg">
    </a>
</td>
<td>
    <a href="https://mybinder.org/v2/gh/obsei/obsei/HEAD?filepath=tutorials%2F03_AppStore_PreProc_Classification_Pandas.ipynb">
        <img alt="Colab" src="https://mybinder.org/badge_logo.svg">
    </a>
</td>
</tr>
<tr>
<td rowspan="2">4</td>
<td colspan="3">Observe news article from Google news, PreProcess text via various text cleaning function, Analyze them via performing text classification while splitting text in small chunks and later computing final inference using given formula</td>
</tr>
<tr>
<td>Google News β†’ Text Cleaner β†’ Text Splitter β†’ Classification β†’ Inference Aggregator</td>
<td>
    <a href="https://colab.research.google.com/github/obsei/obsei/blob/master/tutorials/04_GoogleNews_Cleaner_Splitter_Classification_Aggregator.ipynb">
        <img alt="Colab" src="https://colab.research.google.com/assets/colab-badge.svg">
    </a>
</td>
<td>
    <a href="https://mybinder.org/v2/gh/obsei/obsei/HEAD?filepath=tutorials%2F04_GoogleNews_Cleaner_Splitter_Classification_Aggregator.ipynb">
        <img alt="Colab" src="https://mybinder.org/badge_logo.svg">
    </a>
</td>
</tr>
</tbody>
</table>

<details><summary><b>πŸ’‘Tips: Handle large text classification via Obsei</b></summary>

![](https://raw.githubusercontent.com/obsei/obsei-resources/master/gifs/Long_Text_Classification.gif)

</details>

## Documentation

For detailed installation instructions, usages and examples, refer to our [documentation](https://obsei.github.io/obsei/).

## Support and Release Matrix

<table>
<thead>
<tr class="header">
<th></th>
<th>Linux</th>
<th>Mac</th>
<th>Windows</th>
<th>Remark</th>
</tr>
</thead>
<tbody>
<tr>
<td>Tests</td>
<td style="text-align:center">βœ…</td>
<td style="text-align:center">βœ…</td>
<td style="text-align:center">βœ…</td>
<td>Low Coverage as difficult to test 3rd party libs</td>
</tr>
<tr>
<td>PIP</td>
<td style="text-align:center">βœ…</td>
<td style="text-align:center">βœ…</td>
<td style="text-align:center">βœ…</td>
<td>Fully Supported</td>
</tr>
<tr>
<td>Conda</td>
<td style="text-align:center">❌</td>
<td style="text-align:center">❌</td>
<td style="text-align:center">❌</td>
<td>Not Supported</td>
</tr>
</tbody>
</table>

## Discussion forum

Discussion about _Obsei_ can be done at [community forum](https://github.com/obsei/obsei/discussions)

## Changelogs

Refer [releases](https://github.com/obsei/obsei/releases) for changelogs

## Security Issue

For any security issue please contact us via [email](mailto:contact@oraika.com)

## Stargazers over time

[![Stargazers over time](https://starchart.cc/obsei/obsei.svg)](https://starchart.cc/obsei/obsei)

## Maintainers

This project is being maintained by [Oraika Technologies](https://www.oraika.com). [Lalit Pagaria](https://github.com/lalitpagaria) and [Girish Patel](https://github.com/GirishPatel) are maintainers of this project.

## License

- Copyright holder: [Oraika Technologies](https://www.oraika.com)
- Overall Apache 2.0 and you can read [License](https://github.com/obsei/obsei/blob/master/LICENSE) file.
- Multiple other secondary permissive or weak copyleft licenses (LGPL, MIT, BSD etc.) for third-party components refer [Attribution](https://github.com/obsei/obsei/blob/master/ATTRIBUTION.md).
- To make project more commercial friendly, we void third party components which have strong copyleft licenses (GPL, AGPL etc.) into the project.

## Attribution

This could not have been possible without these [open source softwares](https://github.com/obsei/obsei/blob/master/ATTRIBUTION.md).

## Contribution

First off, thank you for even considering contributing to this package, every contribution big or small is greatly appreciated.
Please refer our [Contribution Guideline](https://github.com/obsei/obsei/blob/master/CONTRIBUTING.md) and [Code of Conduct](https://github.com/obsei/obsei/blob/master/CODE_OF_CONDUCT.md).

Thanks so much to all our contributors

<a href="https://github.com/obsei/obsei/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=obsei/obsei" />
</a>

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "obsei",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Lalit Pagaria <lalit.pagaria@oraika.com>, Girish Patel <girish.patel@oraika.com>",
    "keywords": "automation,cognitive-automation,customer-experience,customer-feedback,customer-feedback-analysis,customer-support,low-code,market-research,nlp,obsei,oraika,social-listening,workflow",
    "author": "",
    "author_email": "Lalit Pagaria <lalit.pagaria@oraika.com>",
    "download_url": "https://files.pythonhosted.org/packages/f5/32/0b27fd147607b0f791a6d538d6dbd8ff029a42965fbf1b3caa279a93e07c/obsei-0.0.15.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n    <img src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/images/obsei-flyer.png\" />\n</p>\n\n---\n<p align=\"center\">\n    <a href=\"https://www.oraika.com\">\n            <img src=\"https://static.wixstatic.com/media/59bc4e_971f153f107e48c7912b9b2d4cd1b1a4~mv2.png/v1/fill/w_177,h_49,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/3_edited.png\" />\n    </a>\n</p>\n<p align=\"center\">\n    <a href=\"https://github.com/obsei/obsei/actions\">\n        <img alt=\"Test\" src=\"https://github.com/obsei/obsei/workflows/CI/badge.svg?branch=master\">\n    </a>\n    <a href=\"https://github.com/obsei/obsei/blob/master/LICENSE\">\n        <img alt=\"License\" src=\"https://img.shields.io/pypi/l/obsei\">\n    </a>\n    <a href=\"https://pypi.org/project/obsei\">\n        <img src=\"https://img.shields.io/pypi/pyversions/obsei\" alt=\"PyPI - Python Version\" />\n    </a>\n    <a href=\"https://pypi.org/project/obsei/\">\n        <img alt=\"Release\" src=\"https://img.shields.io/pypi/v/obsei\">\n    </a>\n    <a href=\"https://pepy.tech/project/obsei\">\n        <img src=\"https://pepy.tech/badge/obsei/month\" alt=\"Downloads\" />\n    </a>\n    <a href=\"https://huggingface.co/spaces/obsei/obsei-demo\">\n        <img src=\"https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue\" alt=\"HF Spaces\" />\n    </a>\n    <a href=\"https://github.com/obsei/obsei/commits/master\">\n        <img alt=\"Last commit\" src=\"https://img.shields.io/github/last-commit/obsei/obsei\">\n    </a>\n    <a href=\"https://github.com/obsei/obsei\">\n        <img alt=\"Github stars\" src=\"https://img.shields.io/github/stars/obsei/obsei?style=social\">\n    </a>\n    <a href=\"https://www.youtube.com/channel/UCqdvgro1BzU13tkAfX3jCJA\">\n        <img alt=\"YouTube Channel Subscribers\" src=\"https://img.shields.io/youtube/channel/subscribers/UCqdvgro1BzU13tkAfX3jCJA?style=social\">\n    </a>\n    <a href=\"https://join.slack.com/t/obsei-community/shared_invite/zt-r0wnuz02-FAkAmhTAUoc6pD4SLB9Ikg\">\n        <img src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/Slack_join.svg\" height=\"30\">\n    </a>\n    <a href=\"https://twitter.com/ObseiAI\">\n        <img src=\"https://img.shields.io/twitter/follow/ObseiAI?style=social\">\n    </a>\n</p>\n\n---\n\n![](https://raw.githubusercontent.com/obsei/obsei-resources/master/gifs/obsei_flow.gif)\n\n---\n\n<span style=\"color:red\">\n<b>Note</b>: Obsei is still in alpha stage hence carefully use it in Production. Also, as it is constantly undergoing development hence master branch may contain many breaking changes. Please use released version.\n</span>\n\n---\n\n**Obsei** (pronounced \"Ob see\" | /\u0259b-'s\u0113/) is an open-source, low-code, AI powered automation tool. _Obsei_ consists of -\n\n- **Observer**: Collect unstructured data from various sources like tweets from Twitter, Subreddit comments on Reddit, page post's comments from Facebook, App Stores reviews, Google reviews, Amazon reviews, News, Website, etc.\n- **Analyzer**: Analyze unstructured data collected with various AI tasks like classification, sentiment analysis, translation, PII, etc.\n- **Informer**: Send analyzed data to various destinations like ticketing platforms, data storage, dataframe, etc so that the user can take further actions and perform analysis on the data.\n\nAll the Observers can store their state in databases (Sqlite, Postgres, MySQL, etc.), making Obsei suitable for scheduled jobs or serverless applications.\n\n![Obsei diagram](https://raw.githubusercontent.com/obsei/obsei-resources/master/images/Obsei_diagram.png)\n\n### Future direction -\n\n- Text, Image, Audio, Documents and Video oriented workflows\n- Collect data from every possible private and public channels\n- Add every possible workflow to an AI downstream application to automate manual cognitive workflows\n\n## Use cases\n\n_Obsei_ use cases are following, but not limited to -\n\n- Social listening: Listening about social media posts, comments, customer feedback, etc.\n- Alerting/Notification: To get auto-alerts for events such as customer complaints, qualified sales leads, etc.\n- Automatic customer issue creation based on customer complaints on Social Media, Email, etc.\n- Automatic assignment of proper tags to tickets based content of customer complaint for example login issue, sign up issue, delivery issue, etc.\n- Extraction of deeper insight from feedbacks on various platforms\n- Market research\n- Creation of dataset for various AI tasks\n- Many more based on creativity \ud83d\udca1\n\n## Installation\n\n### Prerequisite\n\nInstall the following (if not present already) -\n\n- Install [Python 3.7+](https://www.python.org/downloads/)\n- Install [PIP](https://pip.pypa.io/en/stable/installing/)\n\n### Install Obsei\n\nYou can install Obsei either via PIP or Conda based on your preference.\nTo install latest released version -\n\n```shell\npip install obsei[all]\n```\n\nInstall from master branch (if you want to try the latest features) -\n\n```shell\ngit clone https://github.com/obsei/obsei.git\ncd obsei\npip install --editable .[all]\n```\n  \nNote: `all` option will install all the dependencies which might not be needed for your workflow, alternatively \nfollowing options are available to install minimal dependencies as per need -\n - `pip install obsei[source]`: To install dependencies related to all observers\n - `pip install obsei[sink]`: To install dependencies related to all informers\n - `pip install obsei[analyzer]`:  To install dependencies related to all analyzers, it will install pytorch as well\n - `pip install obsei[twitter-api]`: To install dependencies related to Twitter observer\n - `pip install obsei[google-play-scraper]`: To install dependencies related to Play Store review scrapper observer\n - `pip install obsei[google-play-api]`: To install dependencies related to Google official play store review API based observer\n - `pip install obsei[app-store-scraper]`: To install dependencies related to Apple App Store review scrapper observer\n - `pip install obsei[reddit-scraper]`: To install dependencies related to Reddit post and comment scrapper observer\n - `pip install obsei[reddit-api]`: To install dependencies related to Reddit official api based observer\n - `pip install obsei[pandas]`: To install dependencies related to TSV/CSV/Pandas based observer and informer\n - `pip install obsei[google-news-scraper]`: To install dependencies related to Google news scrapper observer\n - `pip install obsei[facebook-api]`: To install dependencies related to Facebook official page post and comments api based observer\n - `pip install obsei[atlassian-api]`: To install dependencies related to Jira official api based informer\n - `pip install obsei[elasticsearch]`: To install dependencies related to elasticsearch informer\n - `pip install obsei[slack-api]`:To install dependencies related to Slack official api based informer\n\nYou can also mix multiple dependencies together in single installation command. For example to install dependencies \nTwitter observer, all analyzer, and Slack informer use following command -\n```shell\npip install obsei[twitter-api, analyzer, slack-api]\n```\n\n\n## How to use\n\nExpand the following steps and create a workflow -\n\n<details><summary><b>Step 1: Configure Source/Observer</b></summary>\n\n<table ><tbody ><tr></tr><tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/twitter.png\" width=\"20\" height=\"20\"><b>Twitter</b></summary><hr>\n\n```python\nfrom obsei.source.twitter_source import TwitterCredentials, TwitterSource, TwitterSourceConfig\n\n# initialize twitter source config\nsource_config = TwitterSourceConfig(\n   keywords=[\"issue\"], # Keywords, @user or #hashtags\n   lookup_period=\"1h\", # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)\n   cred_info=TwitterCredentials(\n       # Enter your twitter consumer key and secret. Get it from https://developer.twitter.com/en/apply-for-access\n       consumer_key=\"<twitter_consumer_key>\",\n       consumer_secret=\"<twitter_consumer_secret>\",\n       bearer_token='<ENTER BEARER TOKEN>',\n   )\n)\n\n# initialize tweets retriever\nsource = TwitterSource()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/Youtube.png\" width=\"20\" height=\"20\"><b>Youtube Scrapper</b></summary><hr>\n\n```python\nfrom obsei.source.youtube_scrapper import YoutubeScrapperSource, YoutubeScrapperConfig\n\n# initialize Youtube source config\nsource_config = YoutubeScrapperConfig(\n    video_url=\"https://www.youtube.com/watch?v=uZfns0JIlFk\", # Youtube video URL\n    fetch_replies=True, # Fetch replies to comments\n    max_comments=10, # Total number of comments and replies to fetch\n    lookup_period=\"1Y\", # Lookup period from current time, format: `<number><d|h|m|M|Y>` (day|hour|minute|month|year)\n)\n\n# initialize Youtube comments retriever\nsource = YoutubeScrapperSource()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/facebook.png\" width=\"20\" height=\"20\"><b>Facebook</b></summary><hr>\n\n```python\nfrom obsei.source.facebook_source import FacebookCredentials, FacebookSource, FacebookSourceConfig\n\n# initialize facebook source config\nsource_config = FacebookSourceConfig(\n   page_id=\"110844591144719\", # Facebook page id, for example this one for Obsei\n   lookup_period=\"1h\", # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)\n   cred_info=FacebookCredentials(\n       # Enter your facebook app_id, app_secret and long_term_token. Get it from https://developers.facebook.com/apps/\n       app_id=\"<facebook_app_id>\",\n       app_secret=\"<facebook_app_secret>\",\n       long_term_token=\"<facebook_long_term_token>\",\n   )\n)\n\n# initialize facebook post comments retriever\nsource = FacebookSource()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/gmail.png\" width=\"20\" height=\"20\"><b>Email</b></summary><hr>\n\n```python\nfrom obsei.source.email_source import EmailConfig, EmailCredInfo, EmailSource\n\n# initialize email source config\nsource_config = EmailConfig(\n   # List of IMAP servers for most commonly used email providers\n   # https://www.systoolsgroup.com/imap/\n   # Also, if you're using a Gmail account then make sure you allow less secure apps on your account -\n   # https://myaccount.google.com/lesssecureapps?pli=1\n   # Also enable IMAP access -\n   # https://mail.google.com/mail/u/0/#settings/fwdandpop\n   imap_server=\"imap.gmail.com\", # Enter IMAP server\n   cred_info=EmailCredInfo(\n       # Enter your email account username and password\n       username=\"<email_username>\",\n       password=\"<email_password>\"\n   ),\n   lookup_period=\"1h\" # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)\n)\n\n# initialize email retriever\nsource = EmailSource()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/google_maps.png\" width=\"20\" height=\"20\"><b>Google Maps Reviews Scrapper</b></summary><hr>\n\n```python\nfrom obsei.source.google_maps_reviews import OSGoogleMapsReviewsSource, OSGoogleMapsReviewsConfig\n\n# initialize Outscrapper Maps review source config\nsource_config = OSGoogleMapsReviewsConfig(\n   # Collect API key from https://outscraper.com/\n   api_key=\"<Enter Your API Key>\",\n   # Enter Google Maps link or place id\n   # For example below is for the \"Taj Mahal\"\n   queries=[\"https://www.google.co.in/maps/place/Taj+Mahal/@27.1751496,78.0399535,17z/data=!4m5!3m4!1s0x39747121d702ff6d:0xdd2ae4803f767dde!8m2!3d27.1751448!4d78.0421422\"],\n   number_of_reviews=10,\n)\n\n\n# initialize Outscrapper Maps review retriever\nsource = OSGoogleMapsReviewsSource()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/appstore.png\" width=\"20\" height=\"20\"><b>AppStore Reviews Scrapper</b></summary><hr>\n\n```python\nfrom obsei.source.appstore_scrapper import AppStoreScrapperConfig, AppStoreScrapperSource\n\n# initialize app store source config\nsource_config = AppStoreScrapperConfig(\n   # Need two parameters app_id and country.\n   # `app_id` can be found at the end of the url of app in app store.\n   # For example - https://apps.apple.com/us/app/xcode/id497799835\n   # `310633997` is the app_id for xcode and `us` is country.\n   countries=[\"us\"],\n   app_id=\"310633997\",\n   lookup_period=\"1h\" # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)\n)\n\n\n# initialize app store reviews retriever\nsource = AppStoreScrapperSource()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/playstore.png\" width=\"20\" height=\"20\"><b>Play Store Reviews Scrapper</b></summary><hr>\n\n```python\nfrom obsei.source.playstore_scrapper import PlayStoreScrapperConfig, PlayStoreScrapperSource\n\n# initialize play store source config\nsource_config = PlayStoreScrapperConfig(\n   # Need two parameters package_name and country.\n   # `package_name` can be found at the end of the url of app in play store.\n   # For example - https://play.google.com/store/apps/details?id=com.google.android.gm&hl=en&gl=US\n   # `com.google.android.gm` is the package_name for xcode and `us` is country.\n   countries=[\"us\"],\n   package_name=\"com.google.android.gm\",\n   lookup_period=\"1h\" # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)\n)\n\n# initialize play store reviews retriever\nsource = PlayStoreScrapperSource()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/reddit.png\" width=\"20\" height=\"20\"><b>Reddit</b></summary><hr>\n\n```python\nfrom obsei.source.reddit_source import RedditConfig, RedditSource, RedditCredInfo\n\n# initialize reddit source config\nsource_config = RedditConfig(\n   subreddits=[\"wallstreetbets\"], # List of subreddits\n   # Reddit account username and password\n   # You can also enter reddit client_id and client_secret or refresh_token\n   # Create credential at https://www.reddit.com/prefs/apps\n   # Also refer https://praw.readthedocs.io/en/latest/getting_started/authentication.html\n   # Currently Password Flow, Read Only Mode and Saved Refresh Token Mode are supported\n   cred_info=RedditCredInfo(\n       username=\"<reddit_username>\",\n       password=\"<reddit_password>\"\n   ),\n   lookup_period=\"1h\" # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)\n)\n\n# initialize reddit retriever\nsource = RedditSource()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/reddit.png\" width=\"20\" height=\"20\"><b>Reddit Scrapper</b></summary><hr>\n\n<i>Note: Reddit heavily rate limit scrappers, hence use it to fetch small data during long period</i>\n\n```python\nfrom obsei.source.reddit_scrapper import RedditScrapperConfig, RedditScrapperSource\n\n# initialize reddit scrapper source config\nsource_config = RedditScrapperConfig(\n   # Reddit subreddit, search etc rss url. For proper url refer following link -\n   # Refer https://www.reddit.com/r/pathogendavid/comments/tv8m9/pathogendavids_guide_to_rss_and_reddit/\n   url=\"https://www.reddit.com/r/wallstreetbets/comments/.rss?sort=new\",\n   lookup_period=\"1h\" # Lookup period from current time, format: `<number><d|h|m>` (day|hour|minute)\n)\n\n# initialize reddit retriever\nsource = RedditScrapperSource()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/googlenews.png\" width=\"20\" height=\"20\"><b>Google News</b></summary><hr>\n\n```python\nfrom obsei.source.google_news_source import GoogleNewsConfig, GoogleNewsSource\n\n# initialize Google News source config\nsource_config = GoogleNewsConfig(\n   query='bitcoin',\n   max_results=5,\n   # To fetch full article text enable `fetch_article` flag\n   # By default google news gives title and highlight\n   fetch_article=True,\n   # proxy='http://127.0.0.1:8080'\n)\n\n# initialize Google News retriever\nsource = GoogleNewsSource()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/webcrawler.png\" width=\"20\" height=\"20\"><b>Web Crawler</b></summary><hr>\n\n```python\nfrom obsei.source.website_crawler_source import TrafilaturaCrawlerConfig, TrafilaturaCrawlerSource\n\n# initialize website crawler source config\nsource_config = TrafilaturaCrawlerConfig(\n   urls=['https://obsei.github.io/obsei/']\n)\n\n# initialize website text retriever\nsource = TrafilaturaCrawlerSource()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/pandas.svg\" width=\"20\" height=\"20\"><b>Pandas DataFrame</b></summary><hr>\n\n```python\nimport pandas as pd\nfrom obsei.source.pandas_source import PandasSource, PandasSourceConfig\n\n# Initialize your Pandas DataFrame from your sources like csv, excel, sql etc\n# In following example we are reading csv which have two columns title and text\ncsv_file = \"https://raw.githubusercontent.com/deepset-ai/haystack/master/tutorials/small_generator_dataset.csv\"\ndataframe = pd.read_csv(csv_file)\n\n# initialize pandas sink config\nsink_config = PandasSourceConfig(\n   dataframe=dataframe,\n   include_columns=[\"score\"],\n   text_columns=[\"name\", \"degree\"],\n)\n\n# initialize pandas sink\nsink = PandasSource()\n```\n\n</details>\n</td>\n</tr>\n</tbody>\n</table>\n\n</details>\n\n<details><summary><b>Step 2: Configure Analyzer</b></summary>\n\n<i>Note: To run transformers in an offline mode, check [transformers offline mode](https://huggingface.co/transformers/installation.html#offline-mode).</i>\n\n<p>Some analyzer support GPU and to utilize pass <b>device</b> parameter.\nList of possible values of <b>device</b> parameter (default value <i>auto</i>):\n<ol>\n    <li> <b>auto</b>: GPU (cuda:0) will be used if available otherwise CPU will be used\n    <li> <b>cpu</b>: CPU will be used\n    <li> <b>cuda:{id}</b> - GPU will be used with provided CUDA device id\n</ol>\n</p>\n\n<table ><tbody ><tr></tr><tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/classification.png\" width=\"20\" height=\"20\"><b>Text Classification</b></summary><hr>\n\nText classification: Classify text into user provided categories.\n\n```python\nfrom obsei.analyzer.classification_analyzer import ClassificationAnalyzerConfig, ZeroShotClassificationAnalyzer\n\n# initialize classification analyzer config\n# It can also detect sentiments if \"positive\" and \"negative\" labels are added.\nanalyzer_config=ClassificationAnalyzerConfig(\n   labels=[\"service\", \"delay\", \"performance\"],\n)\n\n# initialize classification analyzer\n# For supported models refer https://huggingface.co/models?filter=zero-shot-classification\ntext_analyzer = ZeroShotClassificationAnalyzer(\n   model_name_or_path=\"typeform/mobilebert-uncased-mnli\",\n   device=\"auto\"\n)\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/sentiment.png\" width=\"20\" height=\"20\"><b>Sentiment Analyzer</b></summary><hr>\n\nSentiment Analyzer: Detect the sentiment of the text. Text classification can also perform sentiment analysis but if you don't want to use heavy-duty NLP model then use less resource hungry dictionary based Vader Sentiment detector.\n\n```python\nfrom obsei.analyzer.sentiment_analyzer import VaderSentimentAnalyzer\n\n# Vader does not need any configuration settings\nanalyzer_config=None\n\n# initialize vader sentiment analyzer\ntext_analyzer = VaderSentimentAnalyzer()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/ner.png\" width=\"20\" height=\"20\"><b>NER Analyzer</b></summary><hr>\n\nNER (Named-Entity Recognition) Analyzer: Extract information and classify named entities mentioned in text into pre-defined categories such as person names, organizations, locations, medical codes, time expressions, quantities, monetary values, percentages, etc\n\n```python\nfrom obsei.analyzer.ner_analyzer import NERAnalyzer\n\n# NER analyzer does not need configuration settings\nanalyzer_config=None\n\n# initialize ner analyzer\n# For supported models refer https://huggingface.co/models?filter=token-classification\ntext_analyzer = NERAnalyzer(\n   model_name_or_path=\"elastic/distilbert-base-cased-finetuned-conll03-english\",\n   device = \"auto\"\n)\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/translator.png\" width=\"20\" height=\"20\"><b>Translator</b></summary><hr>\n\n```python\nfrom obsei.analyzer.translation_analyzer import TranslationAnalyzer\n\n# Translator does not need analyzer config\nanalyzer_config = None\n\n# initialize translator\n# For supported models refer https://huggingface.co/models?pipeline_tag=translation\nanalyzer = TranslationAnalyzer(\n   model_name_or_path=\"Helsinki-NLP/opus-mt-hi-en\",\n   device = \"auto\"\n)\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/pii.png\" width=\"20\" height=\"20\"><b>PII Anonymizer</b></summary><hr>\n\n```python\nfrom obsei.analyzer.pii_analyzer import PresidioEngineConfig, PresidioModelConfig, \\\n   PresidioPIIAnalyzer, PresidioPIIAnalyzerConfig\n\n# initialize pii analyzer's config\nanalyzer_config = PresidioPIIAnalyzerConfig(\n   # Whether to return only pii analysis or anonymize text\n   analyze_only=False,\n   # Whether to return detail information about anonymization decision\n   return_decision_process=True\n)\n\n# initialize pii analyzer\nanalyzer = PresidioPIIAnalyzer(\n   engine_config=PresidioEngineConfig(\n       # spacy and stanza nlp engines are supported\n       # For more info refer\n       # https://microsoft.github.io/presidio/analyzer/developing_recognizers/#utilize-spacy-or-stanza\n       nlp_engine_name=\"spacy\",\n       # Update desired spacy model and language\n       models=[PresidioModelConfig(model_name=\"en_core_web_lg\", lang_code=\"en\")]\n   )\n)\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/dummy.png\" width=\"20\" height=\"20\"><b>Dummy Analyzer</b></summary><hr>\n\nDummy Analyzer: Does nothing. Its simply used for transforming the input (TextPayload) to output (TextPayload) and adding the user supplied dummy data.\n\n```python\nfrom obsei.analyzer.dummy_analyzer import DummyAnalyzer, DummyAnalyzerConfig\n\n# initialize dummy analyzer's configuration settings\nanalyzer_config = DummyAnalyzerConfig()\n\n# initialize dummy analyzer\nanalyzer = DummyAnalyzer()\n```\n\n</details>\n</td>\n</tr>\n</tbody>\n</table>\n\n</details>\n\n<details><summary><b>Step 3: Configure Sink/Informer</b></summary>\n\n<table ><tbody ><tr></tr><tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/slack.svg\" width=\"25\" height=\"25\"><b>Slack</b></summary><hr>\n\n```python\nfrom obsei.sink.slack_sink import SlackSink, SlackSinkConfig\n\n# initialize slack sink config\nsink_config = SlackSinkConfig(\n   # Provide slack bot/app token\n   # For more detail refer https://slack.com/intl/en-de/help/articles/215770388-Create-and-regenerate-API-tokens\n   slack_token=\"<Slack_app_token>\",\n   # To get channel id refer https://stackoverflow.com/questions/40940327/what-is-the-simplest-way-to-find-a-slack-team-id-and-a-channel-id\n   channel_id=\"C01LRS6CT9Q\"\n)\n\n# initialize slack sink\nsink = SlackSink()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/zendesk.png\" width=\"20\" height=\"20\"><b>Zendesk</b></summary><hr>\n\n```python\nfrom obsei.sink.zendesk_sink import ZendeskSink, ZendeskSinkConfig, ZendeskCredInfo\n\n# initialize zendesk sink config\nsink_config = ZendeskSinkConfig(\n   # provide zendesk domain\n   domain=\"zendesk.com\",\n   # provide subdomain if you have one\n   subdomain=None,\n   # Enter zendesk user details\n   cred_info=ZendeskCredInfo(\n       email=\"<zendesk_user_email>\",\n       password=\"<zendesk_password>\"\n   )\n)\n\n# initialize zendesk sink\nsink = ZendeskSink()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/jira.png\" width=\"20\" height=\"20\"><b>Jira</b></summary><hr>\n\n```python\nfrom obsei.sink.jira_sink import JiraSink, JiraSinkConfig\n\n# For testing purpose you can start jira server locally\n# Refer https://developer.atlassian.com/server/framework/atlassian-sdk/atlas-run-standalone/\n\n# initialize Jira sink config\nsink_config = JiraSinkConfig(\n   url=\"http://localhost:2990/jira\", # Jira server url\n    # Jira username & password for user who have permission to create issue\n   username=\"<username>\",\n   password=\"<password>\",\n   # Which type of issue to be created\n   # For more information refer https://support.atlassian.com/jira-cloud-administration/docs/what-are-issue-types/\n   issue_type={\"name\": \"Task\"},\n   # Under which project issue to be created\n   # For more information refer https://support.atlassian.com/jira-software-cloud/docs/what-is-a-jira-software-project/\n   project={\"key\": \"CUS\"},\n)\n\n# initialize Jira sink\nsink = JiraSink()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/elastic.png\" width=\"20\" height=\"20\"><b>ElasticSearch</b></summary><hr>\n\n```python\nfrom obsei.sink.elasticsearch_sink import ElasticSearchSink, ElasticSearchSinkConfig\n\n# For testing purpose you can start Elasticsearch server locally via docker\n# `docker run -d --name elasticsearch -p 9200:9200 -e \"discovery.type=single-node\" elasticsearch:8.5.0`\n\n# initialize Elasticsearch sink config\nsink_config = ElasticSearchSinkConfig(\n   # Elasticsearch server\n   hosts=\"http://localhost:9200\",\n   # Index name, it will create if not exist\n   index_name=\"test\",\n)\n\n# initialize Elasticsearch sink\nsink = ElasticSearchSink()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/http_api.png\" width=\"20\" height=\"20\"><b>Http</b></summary><hr>\n\n```python\nfrom obsei.sink.http_sink import HttpSink, HttpSinkConfig\n\n# For testing purpose you can create mock http server via postman\n# For more details refer https://learning.postman.com/docs/designing-and-developing-your-api/mocking-data/setting-up-mock/\n\n# initialize http sink config (Currently only POST call is supported)\nsink_config = HttpSinkConfig(\n   # provide http server url\n   url=\"https://localhost:8080/api/path\",\n   # Here you can add headers you would like to pass with request\n   headers={\n       \"Content-type\": \"application/json\"\n   }\n)\n\n# To modify or converting the payload, create convertor class\n# Refer obsei.sink.dailyget_sink.PayloadConvertor for example\n\n# initialize http sink\nsink = HttpSink()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/pandas.svg\" width=\"20\" height=\"20\"><b>Pandas DataFrame</b></summary><hr>\n\n```python\nfrom pandas import DataFrame\nfrom obsei.sink.pandas_sink import PandasSink, PandasSinkConfig\n\n# initialize pandas sink config\nsink_config = PandasSinkConfig(\n   dataframe=DataFrame()\n)\n\n# initialize pandas sink\nsink = PandasSink()\n```\n\n</details>\n</td>\n</tr>\n<tr>\n<td><details ><summary><img style=\"vertical-align:middle;margin:2px 10px\" src=\"https://raw.githubusercontent.com/obsei/obsei-resources/master/logos/logger.png\" width=\"20\" height=\"20\"><b>Logger</b></summary><hr>\n\nThis is useful for testing and dry running the pipeline.\n\n```python\nfrom obsei.sink.logger_sink import LoggerSink, LoggerSinkConfig\nimport logging\nimport sys\n\nlogger = logging.getLogger(\"Obsei\")\nlogging.basicConfig(stream=sys.stdout, level=logging.INFO)\n\n# initialize logger sink config\nsink_config = LoggerSinkConfig(\n   logger=logger,\n   level=logging.INFO\n)\n\n# initialize logger sink\nsink = LoggerSink()\n```\n\n</details>\n</td>\n</tr>\n</tbody>\n</table>\n\n</details>\n\n<details><summary><b>Step 4: Join and create workflow</b></summary>\n\n`source` will fetch data from the selected source, then feed it to the `analyzer` for processing, whose output we feed into a `sink` to get notified at that sink.\n\n```python\n# Uncomment if you want logger\n# import logging\n# import sys\n# logger = logging.getLogger(__name__)\n# logging.basicConfig(stream=sys.stdout, level=logging.INFO)\n\n# This will fetch information from configured source ie twitter, app store etc\nsource_response_list = source.lookup(source_config)\n\n# Uncomment if you want to log source response\n# for idx, source_response in enumerate(source_response_list):\n#     logger.info(f\"source_response#'{idx}'='{source_response.__dict__}'\")\n\n# This will execute analyzer (Sentiment, classification etc) on source data with provided analyzer_config\nanalyzer_response_list = text_analyzer.analyze_input(\n    source_response_list=source_response_list,\n    analyzer_config=analyzer_config\n)\n\n# Uncomment if you want to log analyzer response\n# for idx, an_response in enumerate(analyzer_response_list):\n#    logger.info(f\"analyzer_response#'{idx}'='{an_response.__dict__}'\")\n\n# Analyzer output added to segmented_data\n# Uncomment to log it\n# for idx, an_response in enumerate(analyzer_response_list):\n#    logger.info(f\"analyzed_data#'{idx}'='{an_response.segmented_data.__dict__}'\")\n\n# This will send analyzed output to configure sink ie Slack, Zendesk etc\nsink_response_list = sink.send_data(analyzer_response_list, sink_config)\n\n# Uncomment if you want to log sink response\n# for sink_response in sink_response_list:\n#     if sink_response is not None:\n#         logger.info(f\"sink_response='{sink_response}'\")\n```\n\n</details>\n\n<details><summary><b>Step 5: Execute workflow</b></summary>\nCopy the code snippets from <b>Steps 1 to 4</b> into a python file, for example <code>example.py</code> and execute the following command -\n\n```shell\npython example.py\n```\n\n</details>\n\n## Demo\n\nWe have a minimal [streamlit](https://streamlit.io/) based UI that you can use to test Obsei.\n\n![Screenshot](https://raw.githubusercontent.com/obsei/obsei-resources/master/images/obsei-ui-demo.png)\n\n### Watch UI demo video\n\n[![Introductory and demo video](https://img.youtube.com/vi/GTF-Hy96gvY/2.jpg)](https://www.youtube.com/watch?v=GTF-Hy96gvY)\n\nCheck demo at [![](https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Spaces-blue)](https://huggingface.co/spaces/obsei/obsei-demo)\n\n(**Note**: Sometimes the Streamlit demo might not work due to rate limiting, use the docker image (locally) in such cases.)\n\nTo test locally, just run\n\n```\ndocker run -d --name obesi-ui -p 8501:8501 obsei/obsei-ui-demo\n\n# You can find the UI at http://localhost:8501\n```\n\n**To run Obsei workflow easily using GitHub Actions (no sign ups and cloud hosting required), refer to this [repo](https://github.com/obsei/demo-workflow-action)**.\n\n## Companies/Projects using Obsei\n\nHere are some companies/projects (alphabetical order) using Obsei. To add your company/project to the list, please raise a PR or contact us via [email](contact@obsei.com).\n\n- [Oraika](https://www.oraika.com): Contextually understand customer feedback\n- [1Page](https://www.get1page.com/): Giving a better context in meetings and calls\n- [Spacepulse](http://spacepulse.in/): The operating system for spaces\n- [Superblog](https://superblog.ai/): A blazing fast alternative to WordPress and Medium\n- [Zolve](https://zolve.com/): Creating a financial world beyond borders\n- [Utilize](https://www.utilize.app/): No-code app builder for businesses with a deskless workforce\n\n## Articles\n\n<table>\n<thead>\n<tr class=\"header\">\n<th>Sr. No.</th>\n<th>Title</th>\n<th>Author</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>\n    <a href=\"https://reenabapna.medium.com/ai-based-comparative-customer-feedback-analysis-using-deep-learning-models-def0dc77aaee\">AI based Comparative Customer Feedback Analysis Using Obsei</a>\n</td>\n<td>\n    <a href=\"linkedin.com/in/reena-bapna-66a8691a\">Reena Bapna</a>\n</td>\n</tr>\n<tr>\n<td>2</td>\n<td>\n    <a href=\"https://medium.com/mlearning-ai/linkedin-app-user-feedback-analysis-9c9f98464daa\">LinkedIn App - User Feedback Analysis</a>\n</td>\n<td>\n    <a href=\"http://www.linkedin.com/in/himanshusharmads\">Himanshu Sharma</a>\n</td>\n</tr>\n</tbody>\n</table>\n\n## Tutorials\n\n<table>\n<thead>\n<tr class=\"header\">\n<th>Sr. No.</th>\n<th>Workflow</th>\n<th>Colab</th>\n<th>Binder</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td rowspan=\"2\">1</td>\n<td colspan=\"3\">Observe app reviews from Google play store, Analyze them by performing text classification and then Inform them on console via logger</td>\n</tr>\n<tr>\n<td>PlayStore Reviews \u2192 Classification \u2192 Logger</td>\n<td>\n    <a href=\"https://colab.research.google.com/github/obsei/obsei/blob/master/tutorials/01_PlayStore_Classification_Logger.ipynb\">\n        <img alt=\"Colab\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">\n    </a>\n</td>\n<td>\n    <a href=\"https://mybinder.org/v2/gh/obsei/obsei/HEAD?filepath=tutorials%2F01_PlayStore_Classification_Logger.ipynb\">\n        <img alt=\"Colab\" src=\"https://mybinder.org/badge_logo.svg\">\n    </a>\n</td>\n</tr>\n<tr>\n<td rowspan=\"2\">2</td>\n<td colspan=\"3\">Observe app reviews from Google play store, PreProcess text via various text cleaning functions, Analyze them by performing text classification, Inform them to Pandas DataFrame and store resultant CSV to Google Drive</td>\n</tr>\n<tr>\n<td>PlayStore Reviews \u2192 PreProcessing \u2192 Classification \u2192 Pandas DataFrame \u2192 CSV in Google Drive</td>\n<td>\n    <a href=\"https://colab.research.google.com/github/obsei/obsei/blob/master/tutorials/02_PlayStore_PreProc_Classification_Pandas.ipynb\">\n        <img alt=\"Colab\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">\n    </a>\n</td>\n<td>\n    <a href=\"https://mybinder.org/v2/gh/obsei/obsei/HEAD?filepath=tutorials%2F02_PlayStore_PreProc_Classification_Pandas.ipynb\">\n        <img alt=\"Colab\" src=\"https://mybinder.org/badge_logo.svg\">\n    </a>\n</td>\n</tr>\n<tr>\n<td rowspan=\"2\">3</td>\n<td colspan=\"3\">Observe app reviews from Apple app store, PreProcess text via various text cleaning function, Analyze them by performing text classification, Inform them to Pandas DataFrame and store resultant CSV to Google Drive</td>\n</tr>\n<tr>\n<td>AppStore Reviews \u2192 PreProcessing \u2192 Classification \u2192 Pandas DataFrame \u2192 CSV in Google Drive</td>\n<td>\n    <a href=\"https://colab.research.google.com/github/obsei/obsei/blob/master/tutorials/03_AppStore_PreProc_Classification_Pandas.ipynb\">\n        <img alt=\"Colab\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">\n    </a>\n</td>\n<td>\n    <a href=\"https://mybinder.org/v2/gh/obsei/obsei/HEAD?filepath=tutorials%2F03_AppStore_PreProc_Classification_Pandas.ipynb\">\n        <img alt=\"Colab\" src=\"https://mybinder.org/badge_logo.svg\">\n    </a>\n</td>\n</tr>\n<tr>\n<td rowspan=\"2\">4</td>\n<td colspan=\"3\">Observe news article from Google news, PreProcess text via various text cleaning function, Analyze them via performing text classification while splitting text in small chunks and later computing final inference using given formula</td>\n</tr>\n<tr>\n<td>Google News \u2192 Text Cleaner \u2192 Text Splitter \u2192 Classification \u2192 Inference Aggregator</td>\n<td>\n    <a href=\"https://colab.research.google.com/github/obsei/obsei/blob/master/tutorials/04_GoogleNews_Cleaner_Splitter_Classification_Aggregator.ipynb\">\n        <img alt=\"Colab\" src=\"https://colab.research.google.com/assets/colab-badge.svg\">\n    </a>\n</td>\n<td>\n    <a href=\"https://mybinder.org/v2/gh/obsei/obsei/HEAD?filepath=tutorials%2F04_GoogleNews_Cleaner_Splitter_Classification_Aggregator.ipynb\">\n        <img alt=\"Colab\" src=\"https://mybinder.org/badge_logo.svg\">\n    </a>\n</td>\n</tr>\n</tbody>\n</table>\n\n<details><summary><b>\ud83d\udca1Tips: Handle large text classification via Obsei</b></summary>\n\n![](https://raw.githubusercontent.com/obsei/obsei-resources/master/gifs/Long_Text_Classification.gif)\n\n</details>\n\n## Documentation\n\nFor detailed installation instructions, usages and examples, refer to our [documentation](https://obsei.github.io/obsei/).\n\n## Support and Release Matrix\n\n<table>\n<thead>\n<tr class=\"header\">\n<th></th>\n<th>Linux</th>\n<th>Mac</th>\n<th>Windows</th>\n<th>Remark</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Tests</td>\n<td style=\"text-align:center\">\u2705</td>\n<td style=\"text-align:center\">\u2705</td>\n<td style=\"text-align:center\">\u2705</td>\n<td>Low Coverage as difficult to test 3rd party libs</td>\n</tr>\n<tr>\n<td>PIP</td>\n<td style=\"text-align:center\">\u2705</td>\n<td style=\"text-align:center\">\u2705</td>\n<td style=\"text-align:center\">\u2705</td>\n<td>Fully Supported</td>\n</tr>\n<tr>\n<td>Conda</td>\n<td style=\"text-align:center\">\u274c</td>\n<td style=\"text-align:center\">\u274c</td>\n<td style=\"text-align:center\">\u274c</td>\n<td>Not Supported</td>\n</tr>\n</tbody>\n</table>\n\n## Discussion forum\n\nDiscussion about _Obsei_ can be done at [community forum](https://github.com/obsei/obsei/discussions)\n\n## Changelogs\n\nRefer [releases](https://github.com/obsei/obsei/releases) for changelogs\n\n## Security Issue\n\nFor any security issue please contact us via [email](mailto:contact@oraika.com)\n\n## Stargazers over time\n\n[![Stargazers over time](https://starchart.cc/obsei/obsei.svg)](https://starchart.cc/obsei/obsei)\n\n## Maintainers\n\nThis project is being maintained by [Oraika Technologies](https://www.oraika.com). [Lalit Pagaria](https://github.com/lalitpagaria) and [Girish Patel](https://github.com/GirishPatel) are maintainers of this project.\n\n## License\n\n- Copyright holder: [Oraika Technologies](https://www.oraika.com)\n- Overall Apache 2.0 and you can read [License](https://github.com/obsei/obsei/blob/master/LICENSE) file.\n- Multiple other secondary permissive or weak copyleft licenses (LGPL, MIT, BSD etc.) for third-party components refer [Attribution](https://github.com/obsei/obsei/blob/master/ATTRIBUTION.md).\n- To make project more commercial friendly, we void third party components which have strong copyleft licenses (GPL, AGPL etc.) into the project.\n\n## Attribution\n\nThis could not have been possible without these [open source softwares](https://github.com/obsei/obsei/blob/master/ATTRIBUTION.md).\n\n## Contribution\n\nFirst off, thank you for even considering contributing to this package, every contribution big or small is greatly appreciated.\nPlease refer our [Contribution Guideline](https://github.com/obsei/obsei/blob/master/CONTRIBUTING.md) and [Code of Conduct](https://github.com/obsei/obsei/blob/master/CODE_OF_CONDUCT.md).\n\nThanks so much to all our contributors\n\n<a href=\"https://github.com/obsei/obsei/graphs/contributors\">\n  <img src=\"https://contrib.rocks/image?repo=obsei/obsei\" />\n</a>\n",
    "bugtrack_url": null,
    "license": "Apache Version 2.0",
    "summary": "Obsei is an automation tool for text analysis need",
    "version": "0.0.15",
    "project_urls": {
        "changelog": "https://github.com/obsei/obsei/releases",
        "documentation": "https://obsei.com",
        "homepage": "https://obsei.com",
        "repository": "https://github.com/obsei/obsei"
    },
    "split_keywords": [
        "automation",
        "cognitive-automation",
        "customer-experience",
        "customer-feedback",
        "customer-feedback-analysis",
        "customer-support",
        "low-code",
        "market-research",
        "nlp",
        "obsei",
        "oraika",
        "social-listening",
        "workflow"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e304241f8aa8eb42afcc91c706a5dddfaa649f6ac6a25f376ec6d75ba7ea4836",
                "md5": "a1eb110ef34c1e029fd1755f01167543",
                "sha256": "996249103d61e5dc5b1a93d4ff3b7ce87ece29eea8d2b0287eb547c4890b8a03"
            },
            "downloads": -1,
            "filename": "obsei-0.0.15-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a1eb110ef34c1e029fd1755f01167543",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 83227,
            "upload_time": "2023-12-31T08:47:40",
            "upload_time_iso_8601": "2023-12-31T08:47:40.052171Z",
            "url": "https://files.pythonhosted.org/packages/e3/04/241f8aa8eb42afcc91c706a5dddfaa649f6ac6a25f376ec6d75ba7ea4836/obsei-0.0.15-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f5320b27fd147607b0f791a6d538d6dbd8ff029a42965fbf1b3caa279a93e07c",
                "md5": "29399ee7398dfe87e695706aa9a0f963",
                "sha256": "cc741784feca0b4b0586b900ce01c98454d064205b3f746941c4d3606a2b163a"
            },
            "downloads": -1,
            "filename": "obsei-0.0.15.tar.gz",
            "has_sig": false,
            "md5_digest": "29399ee7398dfe87e695706aa9a0f963",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 65148,
            "upload_time": "2023-12-31T08:47:42",
            "upload_time_iso_8601": "2023-12-31T08:47:42.229541Z",
            "url": "https://files.pythonhosted.org/packages/f5/32/0b27fd147607b0f791a6d538d6dbd8ff029a42965fbf1b3caa279a93e07c/obsei-0.0.15.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-31 08:47:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "obsei",
    "github_project": "obsei",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "obsei"
}
        
Elapsed time: 0.16091s