diff options
author | clarkzjw <[email protected]> | 2023-02-20 01:55:20 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-20 01:55:20 -0800 |
commit | 3a230798be1bc63b363cf75b8b1cae3a508cca84 (patch) | |
tree | 6df81aa7028c130726cdf0bcc3abb4f6f106fdf3 /config.py | |
parent | 48cd0ed8abf0e84fc5d013a126e84c65ef0ed87a (diff) | |
download | swarm2fediverse-3a230798be1bc63b363cf75b8b1cae3a508cca84.tar.gz |
4sq: add query poi example
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 30 |
1 files changed, 5 insertions, 25 deletions
@@ -1,28 +1,8 @@ | |||
1 | # https://docs.python.org/3/library/configparser.html | 1 | # https://docs.python.org/3/library/configparser.html |
2 | 2 | ||
3 | # import configparser | 3 | import configparser |
4 | # config = configparser.ConfigParser() | 4 | config = configparser.ConfigParser() |
5 | # config['DEFAULT'] = {'ServerAliveInterval': '45', | 5 | config.read("config.ini") |
6 | # 'Compression': 'yes', | ||
7 | # 'CompressionLevel': '9'} | ||
8 | # config['forge.example'] = {} | ||
9 | # config['forge.example']['User'] = 'hg' | ||
10 | # config['topsecret.server.example'] = {} | ||
11 | # topsecret = config['topsecret.server.example'] | ||
12 | # topsecret['Port'] = '50022' # mutates the parser | ||
13 | # topsecret['ForwardX11'] = 'no' # same here | ||
14 | # config['DEFAULT']['ForwardX11'] = 'yes' | ||
15 | # with open('example.ini', 'w') as configfile: | ||
16 | # config.write(configfile) | ||
17 | 6 | ||
18 | # config = configparser.ConfigParser() | 7 | BOT_TOKEN = config["DEFAULT"]["BOT_TOKEN"] |
19 | # config.sections() | 8 | FSQ_API_KEY = config["DEFAULT"]["FOURSQUARE_API_KEY"] |
20 | # config.read('example.ini') | ||
21 | # config.sections() | ||
22 | # topsecret = config['topsecret.server.example'] | ||
23 | # topsecret['ForwardX11'] | ||
24 | # topsecret['Port'] | ||
25 | # for key in config['forge.example']: | ||
26 | # print(key) | ||
27 | |||
28 | # config['forge.example']['ForwardX11'] | ||