Commit 5b152125 authored by Christoph Thiede's avatar Christoph Thiede Committed by GitHub

Make Config a @dataclass (#887)

parent d7506f5a
from dataclasses import dataclass
from typing import Optional
@dataclass
class Config: class Config:
Username = None Username: Optional[str] = None
User_id = None User_id: Optional[str] = None
Search = None Search: Optional[str] = None
Geo = "" Geo: str = ""
Location = False Location: bool = False
Near = None Near: str = None
Lang = None Lang: Optional[str] = None
Output = None Output: Optional[str] = None
Elasticsearch = None Elasticsearch: object = None
Year = None Year: Optional[int] = None
Since = None Since: Optional[str] = None
Until = None Until: Optional[str] = None
Email = False Email: Optional[str] = None
Phone = False Phone: Optional[str] = None
Verified = False Verified: bool = False
Store_csv = False Store_csv: bool = False
Store_json = False Store_json: bool = False
Custom = {"tweet": None, "user": None, "username": None} Custom = {"tweet": None, "user": None, "username": None}
Show_hashtags = False Show_hashtags: bool = False
Show_cashtags = False Show_cashtags: bool = False
Limit = None Limit: Optional[int] = None
Count = None Count: Optional[int] = None
Stats = False Stats: bool = False
Database = None Database: object = None
To = None To: str = None
All = None All = None
Debug = False Debug: bool = False
Format = None Format = None
Essid = "" Essid: str = ""
Profile = False Profile: bool = False
Followers = False Followers: bool = False
Following = False Following: bool = False
Favorites = False Favorites: bool = False
TwitterSearch = False TwitterSearch: bool = False
User_full = False User_full: bool = False
Profile_full = False Profile_full: bool = False
Store_object = False Store_object: bool = False
Store_object_tweets_list = None Store_object_tweets_list: list = None
Store_object_users_list = None Store_object_users_list: list = None
Store_object_follow_list = None Store_object_follow_list: list = None
Pandas_type = None Pandas_type: type = None
Pandas = False Pandas: bool = False
Index_tweets = "twinttweets" Index_tweets: str = "twinttweets"
Index_follow = "twintgraph" Index_follow: str = "twintgraph"
Index_users = "twintuser" Index_users: str = "twintuser"
Retries_count = 10 Retries_count: int = 10
Resume = None Resume: object = None
Images = False Images: bool = False
Videos = False Videos: bool = False
Media = False Media: bool = False
Replies = False Replies: bool = False
Pandas_clean = True Pandas_clean: bool = True
Lowercase = True Lowercase: bool = True
Pandas_au = True Pandas_au: bool = True
Proxy_host = "" Proxy_host: str = ""
Proxy_port = 0 Proxy_port: int = 0
Proxy_type = None Proxy_type: object = None
Tor_control_port = 9051 Tor_control_port: int = 9051
Tor_control_password = None Tor_control_password: str = None
Retweets = False Retweets: bool = False
Query = None Query: str = None
Hide_output = False Hide_output: bool = False
Custom_query = "" Custom_query: str = ""
Popular_tweets = False Popular_tweets: bool = False
Skip_certs = False Skip_certs: bool = False
Native_retweets = False Native_retweets: bool = False
Min_likes = 0 Min_likes: int = 0
Min_retweets = 0 Min_retweets: int = 0
Min_replies = 0 Min_replies: int = 0
Links = None Links: Optional[str] = None
Source = None Source: Optional[str] = None
Members_list = None Members_list: Optional[str] = None
Filter_retweets = False Filter_retweets: bool = False
Translate = False Translate: bool = False
TranslateSrc = "en" TranslateSrc: str = "en"
TranslateDest = "en" TranslateDest: str = "en"
Backoff_exponent = 3.0 Backoff_exponent: float = 3.0
Min_wait_time = 0 Min_wait_time: int = 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment