Globally accessible settings throughout whole project
| 31 | |
| 32 | |
| 33 | class Settings: |
| 34 | """Globally accessible settings throughout whole project""" |
| 35 | |
| 36 | # locations |
| 37 | log_location = localize_path("logs") |
| 38 | database_location = localize_path("db", "instapy.db") |
| 39 | |
| 40 | # set a logger cache outside the InstaPy object to avoid |
| 41 | # re-instantiation issues |
| 42 | loggers = {} |
| 43 | logger = None |
| 44 | |
| 45 | # set current profile credentials for DB operations |
| 46 | profile = {"id": None, "name": None} |
| 47 | |
| 48 | # hold live Quota Supervisor configuration for global usage |
| 49 | QS_config = {} |
| 50 | |
| 51 | # store user-defined delay time to sleep after doing actions |
| 52 | action_delays = {} |
| 53 | |
| 54 | # store configuration of text analytics |
| 55 | meaningcloud_config = {} |
| 56 | yandex_config = {} |
| 57 | |
| 58 | # store the parameter for global access |
| 59 | show_logs = None |
| 60 | |
| 61 | user_agent = ( |
| 62 | "Mozilla/5.0 (iPhone; CPU iPhone OS 14_2 like Mac OS X) AppleWebKit/605.1.15 " |
| 63 | "(KHTML, like Gecko) FxiOS/29.0 Mobile/15E148 Safari/605.1.15" |
| 64 | ) |
| 65 | |
| 66 | # state of instantiation of InstaPy |
| 67 | InstaPy_is_running = False |
| 68 | |
| 69 | # This is where currently the pods server is hosted |
| 70 | pods_server_endpoint = "https://us-central1-instapy-pods.cloudfunctions.net" |
| 71 | pods_fashion_server_endpoint = ( |
| 72 | "https://us-central1-instapy-pods-fashion.cloudfunctions.net" |
| 73 | ) |
| 74 | pods_food_server_endpoint = ( |
| 75 | "https://us-central1-instapy-pods-food.cloudfunctions.net" |
| 76 | ) |
| 77 | pods_travel_server_endpoint = ( |
| 78 | "https://us-central1-instapy-pods-travel.cloudfunctions.net" |
| 79 | ) |
| 80 | pods_sports_server_endpoint = ( |
| 81 | "https://us-central1-instapy-pods-sports.cloudfunctions.net" |
| 82 | ) |
| 83 | pods_entertainment_server_endpoint = ( |
| 84 | "https://us-central1-instapy-pods-entertainment.cloudfunctions.net" |
| 85 | ) |
| 86 | |
| 87 | |
| 88 | class Storage: |
nothing calls this directly
no test coverage detected