Skip to content

Commit e1d3e02

Browse files
committed
automatic code formatting by PyCharm
1 parent 2bc0353 commit e1d3e02

File tree

3 files changed

+108
-107
lines changed

3 files changed

+108
-107
lines changed

WebServer.postman_collection.json

Lines changed: 104 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,105 @@
11
{
2-
"info": {
3-
"_postman_id": "caef806d-43b2-4556-be69-52e705e715c6",
4-
"name": "KeyValueWebServer",
5-
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
6-
},
7-
"item": [
8-
{
9-
"name": "Get Value",
10-
"request": {
11-
"method": "GET",
12-
"header": [
13-
{
14-
"key": "Accept",
15-
"value": "application/json"
16-
}
17-
],
18-
"url": {
19-
"raw": "{{baseUrl}}/api/records/:name",
20-
"host": [
21-
"{{baseUrl}}"
22-
],
23-
"path": [
24-
"api",
25-
"records",
26-
":name"
27-
],
28-
"variable": [
29-
{
30-
"key": "name",
31-
"value": "name 1"
32-
}
33-
]
34-
}
35-
},
36-
"response": []
37-
},
38-
{
39-
"name": "Set Value",
40-
"request": {
41-
"method": "POST",
42-
"header": [
43-
{
44-
"key": "Accept",
45-
"value": "application/json"
46-
}
47-
],
48-
"body": {
49-
"mode": "raw",
50-
"raw": "{\r\n \"value\": \"my value\"\r\n}",
51-
"options": {
52-
"raw": {
53-
"language": "json"
54-
}
55-
}
56-
},
57-
"url": {
58-
"raw": "{{baseUrl}}/api/records/:name",
59-
"host": [
60-
"{{baseUrl}}"
61-
],
62-
"path": [
63-
"api",
64-
"records",
65-
":name"
66-
],
67-
"variable": [
68-
{
69-
"key": "name",
70-
"value": "name 1"
71-
}
72-
]
73-
}
74-
},
75-
"response": []
76-
}
77-
],
78-
"event": [
79-
{
80-
"listen": "prerequest",
81-
"script": {
82-
"type": "text/javascript",
83-
"exec": [
84-
""
85-
]
86-
}
87-
},
88-
{
89-
"listen": "test",
90-
"script": {
91-
"type": "text/javascript",
92-
"exec": [
93-
""
94-
]
95-
}
96-
}
97-
],
98-
"variable": [
99-
{
100-
"key": "baseUrl",
101-
"value": "localhost:8000",
102-
"type": "string"
103-
}
104-
]
105-
}
2+
"info": {
3+
"_postman_id": "caef806d-43b2-4556-be69-52e705e715c6",
4+
"name": "KeyValueWebServer",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
6+
},
7+
"item": [
8+
{
9+
"name": "Get Value",
10+
"request": {
11+
"method": "GET",
12+
"header": [
13+
{
14+
"key": "Accept",
15+
"value": "application/json"
16+
}
17+
],
18+
"url": {
19+
"raw": "{{baseUrl}}/api/records/:name",
20+
"host": [
21+
"{{baseUrl}}"
22+
],
23+
"path": [
24+
"api",
25+
"records",
26+
":name"
27+
],
28+
"variable": [
29+
{
30+
"key": "name",
31+
"value": "name 1"
32+
}
33+
]
34+
}
35+
},
36+
"response": []
37+
},
38+
{
39+
"name": "Set Value",
40+
"request": {
41+
"method": "POST",
42+
"header": [
43+
{
44+
"key": "Accept",
45+
"value": "application/json"
46+
}
47+
],
48+
"body": {
49+
"mode": "raw",
50+
"raw": "{\r\n \"value\": \"my value\"\r\n}",
51+
"options": {
52+
"raw": {
53+
"language": "json"
54+
}
55+
}
56+
},
57+
"url": {
58+
"raw": "{{baseUrl}}/api/records/:name",
59+
"host": [
60+
"{{baseUrl}}"
61+
],
62+
"path": [
63+
"api",
64+
"records",
65+
":name"
66+
],
67+
"variable": [
68+
{
69+
"key": "name",
70+
"value": "name 1"
71+
}
72+
]
73+
}
74+
},
75+
"response": []
76+
}
77+
],
78+
"event": [
79+
{
80+
"listen": "prerequest",
81+
"script": {
82+
"type": "text/javascript",
83+
"exec": [
84+
""
85+
]
86+
}
87+
},
88+
{
89+
"listen": "test",
90+
"script": {
91+
"type": "text/javascript",
92+
"exec": [
93+
""
94+
]
95+
}
96+
}
97+
],
98+
"variable": [
99+
{
100+
"key": "baseUrl",
101+
"value": "localhost:8000",
102+
"type": "string"
103+
}
104+
]
105+
}

client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22

3-
import json
43
import http.client
4+
import json
55
import multiprocessing
66
import random
77
import sys
@@ -32,6 +32,7 @@
3232

3333
LOG_EVERY_REQUEST = arg1 != '--no-logs'
3434

35+
3536
# =======================================
3637

3738

database.example.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"name 1": "my value",
3-
"name2": "my value 2"
2+
"name 1": "my value",
3+
"name2": "my value 2"
44
}

0 commit comments

Comments
 (0)