Skip to content

Commit a6883a4

Browse files
author
Nick Gray
committed
Prep for the proper version.
1 parent 69f17d8 commit a6883a4

File tree

2 files changed

+169
-155
lines changed

2 files changed

+169
-155
lines changed

README.md

Lines changed: 168 additions & 154 deletions
Original file line numberDiff line numberDiff line change
@@ -22,161 +22,175 @@ $ python setup.py install
2222

2323
After installation, the package can be imported and used to install and manage gameserver files:
2424

25-
>>> import pysteamcmd
26-
>>> import os
27-
>>> steamcmd_path = os.path.join('/','home','f0rkz','steamcmd')
28-
>>> gameserver_path = os.path.join('/','home','f0rkz','mygameserver')
29-
>>> steamcmd = pysteamcmd.Steamcmd(steamcmd_path)
30-
>>> steamcmd.install()
31-
True
32-
>>> steamcmd.install_gamefiles(gameid=232330, game_install_dir=gameserver_path, user='anonymous', password=None, validate=True)
33-
Redirecting stderr to '/home/f0rkz/steamcmd/logs/stderr.txt'
34-
Looks like steam didn't shutdown cleanly, scheduling immediate update check
35-
[ 0%] Checking for available updates...
36-
[ 0%] Downloading update (0 of 10175 KB)...
37-
[ 0%] Downloading update (3376 of 10175 KB)...
38-
[ 33%] Downloading update (5501 of 10175 KB)...
39-
[ 54%] Downloading update (7624 of 10175 KB)...
40-
[ 74%] Downloading update (9748 of 10175 KB)...
41-
[ 95%] Downloading update (10175 of 10175 KB)...
42-
[100%] Download complete.
43-
[----] Installing update...
44-
[----] Extracting package...
45-
[----] Extracting package...
46-
[----] Extracting package...
47-
[----] Installing update...
48-
[----] Installing update...
49-
[----] Installing update...
50-
[----] Cleaning up...
51-
[----] Update complete, launching %appname%...
52-
Redirecting stderr to '/home/f0rkz/steamcmd/logs/stderr.txt'
53-
[ 0%] Checking for available updates...
54-
[----] Downloading update (0 of 7057 KB)...
55-
[ 0%] Downloading update (2137 of 7057 KB)...
56-
[ 30%] Downloading update (3570 of 7057 KB)...
57-
[ 50%] Downloading update (5002 of 7057 KB)...
58-
[ 70%] Downloading update (6296 of 7057 KB)...
59-
[ 89%] Downloading update (7057 of 7057 KB)...
60-
[100%] Download complete.
61-
[----] Installing update...
62-
[----] Extracting package...
63-
[----] Extracting package...
64-
[----] Extracting package...
65-
[----] Installing update...
66-
[----] Installing update...
67-
[----] Installing update...
68-
[----] Cleaning up...
69-
[----] Update complete, launching Steamcmd...
70-
Redirecting stderr to '/home/f0rkz/steamcmd/logs/stderr.txt'
71-
[ 0%] Checking for available updates...
72-
[----] Verifying installation...
73-
Steam Console Client (c) Valve Corporation
74-
-- type 'quit' to exit --
75-
Loading Steam API...Created shared memory when not owner SteamController_Shared_mem
76-
OK.
25+
```
26+
>>> import pysteamcmd
27+
>>> import os
28+
>>> steamcmd_path = os.path.join('/','home','f0rkz','steamcmd')
29+
>>> gameserver_path = os.path.join('/','home','f0rkz','mygameserver')
30+
>>> steamcmd = pysteamcmd.Steamcmd(steamcmd_path)
31+
>>> steamcmd.install()
32+
True
33+
>>> steamcmd.install_gamefiles(gameid=232330, game_install_dir=gameserver_path, user='anonymous', password=None, validate=True)
34+
Redirecting stderr to '/home/f0rkz/steamcmd/logs/stderr.txt'
35+
Looks like steam didn't shutdown cleanly, scheduling immediate update check
36+
[ 0%] Checking for available updates...
37+
[ 0%] Downloading update (0 of 10175 KB)...
38+
[ 0%] Downloading update (3376 of 10175 KB)...
39+
[ 33%] Downloading update (5501 of 10175 KB)...
40+
[ 54%] Downloading update (7624 of 10175 KB)...
41+
[ 74%] Downloading update (9748 of 10175 KB)...
42+
[ 95%] Downloading update (10175 of 10175 KB)...
43+
[100%] Download complete.
44+
[----] Installing update...
45+
[----] Extracting package...
46+
[----] Extracting package...
47+
[----] Extracting package...
48+
[----] Installing update...
49+
[----] Installing update...
50+
[----] Installing update...
51+
[----] Cleaning up...
52+
[----] Update complete, launching %appname%...
53+
Redirecting stderr to '/home/f0rkz/steamcmd/logs/stderr.txt'
54+
[ 0%] Checking for available updates...
55+
[----] Downloading update (0 of 7057 KB)...
56+
[ 0%] Downloading update (2137 of 7057 KB)...
57+
[ 30%] Downloading update (3570 of 7057 KB)...
58+
[ 50%] Downloading update (5002 of 7057 KB)...
59+
[ 70%] Downloading update (6296 of 7057 KB)...
60+
[ 89%] Downloading update (7057 of 7057 KB)...
61+
[100%] Download complete.
62+
[----] Installing update...
63+
[----] Extracting package...
64+
[----] Extracting package...
65+
[----] Extracting package...
66+
[----] Installing update...
67+
[----] Installing update...
68+
[----] Installing update...
69+
[----] Cleaning up...
70+
[----] Update complete, launching Steamcmd...
71+
Redirecting stderr to '/home/f0rkz/steamcmd/logs/stderr.txt'
72+
[ 0%] Checking for available updates...
73+
[----] Verifying installation...
74+
Steam Console Client (c) Valve Corporation
75+
-- type 'quit' to exit --
76+
Loading Steam API...Created shared memory when not owner SteamController_Shared_mem
77+
OK.
78+
79+
Connecting anonymously to Steam Public...Logged in OK
80+
Waiting for license info...OK
81+
Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
82+
Update state (0x61) downloading, progress: 0.00 (4022 / 2284840496)
83+
Update state (0x61) downloading, progress: 1.47 (33674125 / 2284840496)
84+
Update state (0x61) downloading, progress: 3.40 (77714317 / 2284840496)
85+
Update state (0x61) downloading, progress: 5.10 (116511629 / 2284840496)
86+
Update state (0x61) downloading, progress: 6.36 (145424871 / 2284840496)
87+
Update state (0x61) downloading, progress: 7.33 (167444967 / 2284840496)
88+
Update state (0x61) downloading, progress: 10.08 (230359527 / 2284840496)
89+
Update state (0x61) downloading, progress: 12.78 (291997133 / 2284840496)
90+
Update state (0x61) downloading, progress: 15.33 (350367250 / 2284840496)
91+
Update state (0x61) downloading, progress: 18.04 (412233234 / 2284840496)
92+
Update state (0x61) downloading, progress: 19.97 (456273426 / 2284840496)
93+
Update state (0x61) downloading, progress: 21.65 (494684996 / 2284840496)
94+
Update state (0x61) downloading, progress: 23.44 (535579460 / 2284840496)
95+
Update state (0x61) downloading, progress: 24.86 (568085316 / 2284840496)
96+
Update state (0x61) downloading, progress: 24.96 (570182468 / 2284840496)
97+
Update state (0x61) downloading, progress: 24.96 (570182468 / 2284840496)
98+
Update state (0x61) downloading, progress: 26.10 (596396868 / 2284840496)
99+
Update state (0x61) downloading, progress: 26.52 (605834052 / 2284840496)
100+
Update state (0x61) downloading, progress: 27.30 (623659748 / 2284840496)
101+
Update state (0x61) downloading, progress: 28.48 (650769616 / 2284840496)
102+
Update state (0x61) downloading, progress: 29.66 (677730149 / 2284840496)
103+
Update state (0x61) downloading, progress: 31.13 (711284581 / 2284840496)
104+
Update state (0x61) downloading, progress: 32.42 (740644709 / 2284840496)
105+
Update state (0x61) downloading, progress: 32.51 (742741861 / 2284840496)
106+
Update state (0x61) downloading, progress: 32.51 (742741861 / 2284840496)
107+
Update state (0x61) downloading, progress: 33.59 (767584760 / 2284840496)
108+
Update state (0x61) downloading, progress: 34.35 (784937352 / 2284840496)
109+
Update state (0x61) downloading, progress: 35.46 (810103176 / 2284840496)
110+
Update state (0x61) downloading, progress: 36.79 (840511880 / 2284840496)
111+
Update state (0x61) downloading, progress: 38.67 (883501970 / 2284840496)
112+
Update state (0x61) downloading, progress: 40.23 (919153554 / 2284840496)
113+
Update state (0x61) downloading, progress: 41.61 (950813657 / 2284840496)
114+
Update state (0x61) downloading, progress: 42.85 (979125209 / 2284840496)
115+
Update state (0x61) downloading, progress: 44.28 (1011631065 / 2284840496)
116+
Update state (0x61) downloading, progress: 45.29 (1034699737 / 2284840496)
117+
Update state (0x61) downloading, progress: 46.52 (1063011289 / 2284840496)
118+
Update state (0x61) downloading, progress: 47.78 (1091603641 / 2284840496)
119+
Update state (0x61) downloading, progress: 49.24 (1125158073 / 2284840496)
120+
Update state (0x61) downloading, progress: 50.85 (1161861778 / 2284840496)
121+
Update state (0x61) downloading, progress: 52.70 (1204098614 / 2284840496)
122+
Update state (0x61) downloading, progress: 54.07 (1235382127 / 2284840496)
123+
Update state (0x61) downloading, progress: 55.17 (1260547951 / 2284840496)
124+
Update state (0x61) downloading, progress: 56.38 (1288228031 / 2284840496)
125+
Update state (0x61) downloading, progress: 58.49 (1336291743 / 2284840496)
126+
Update state (0x61) downloading, progress: 60.77 (1388412992 / 2284840496)
127+
Update state (0x61) downloading, progress: 62.50 (1427913512 / 2284840496)
128+
Update state (0x61) downloading, progress: 63.80 (1457642021 / 2284840496)
129+
Update state (0x61) downloading, progress: 65.10 (1487396657 / 2284840496)
130+
Update state (0x61) downloading, progress: 66.84 (1527171368 / 2284840496)
131+
Update state (0x61) downloading, progress: 68.68 (1569170292 / 2284840496)
132+
Update state (0x61) downloading, progress: 70.88 (1619533318 / 2284840496)
133+
Update state (0x61) downloading, progress: 72.69 (1660793181 / 2284840496)
134+
Update state (0x61) downloading, progress: 74.79 (1708838013 / 2284840496)
135+
Update state (0x61) downloading, progress: 75.39 (1722469501 / 2284840496)
136+
Update state (0x61) downloading, progress: 75.39 (1722469501 / 2284840496)
137+
Update state (0x61) downloading, progress: 76.46 (1746991720 / 2284840496)
138+
Update state (0x61) downloading, progress: 76.60 (1750137448 / 2284840496)
139+
Update state (0x61) downloading, progress: 76.67 (1751783050 / 2284840496)
140+
Update state (0x61) downloading, progress: 77.85 (1778682504 / 2284840496)
141+
Update state (0x61) downloading, progress: 78.86 (1801751482 / 2284840496)
142+
Update state (0x61) downloading, progress: 79.59 (1818528698 / 2284840496)
143+
Update state (0x61) downloading, progress: 80.85 (1847363192 / 2284840496)
144+
Update state (0x61) downloading, progress: 81.54 (1863091926 / 2284840496)
145+
Update state (0x61) downloading, progress: 82.45 (1883773660 / 2284840496)
146+
Update state (0x61) downloading, progress: 83.93 (1917612606 / 2284840496)
147+
Update state (0x61) downloading, progress: 85.58 (1955381097 / 2284840496)
148+
Update state (0x61) downloading, progress: 87.31 (1994933911 / 2284840496)
149+
Update state (0x61) downloading, progress: 89.62 (2047699106 / 2284840496)
150+
Update state (0x61) downloading, progress: 91.32 (2086518658 / 2284840496)
151+
Update state (0x61) downloading, progress: 91.50 (2090712962 / 2284840496)
152+
Update state (0x61) downloading, progress: 91.53 (2091224790 / 2284840496)
153+
Update state (0x61) downloading, progress: 92.60 (2115846060 / 2284840496)
154+
Update state (0x61) downloading, progress: 93.52 (2136818384 / 2284840496)
155+
Update state (0x61) downloading, progress: 94.42 (2157366218 / 2284840496)
156+
Update state (0x61) downloading, progress: 94.91 (2168451131 / 2284840496)
157+
Update state (0x61) downloading, progress: 94.91 (2168451131 / 2284840496)
158+
Update state (0x61) downloading, progress: 95.01 (2170904180 / 2284840496)
159+
Update state (0x61) downloading, progress: 95.15 (2174053630 / 2284840496)
160+
Update state (0x61) downloading, progress: 95.15 (2174053630 / 2284840496)
161+
Update state (0x61) downloading, progress: 95.46 (2181138751 / 2284840496)
162+
Update state (0x61) downloading, progress: 96.20 (2197916101 / 2284840496)
163+
Update state (0x61) downloading, progress: 97.29 (2222829813 / 2284840496)
164+
Update state (0x61) downloading, progress: 97.44 (2226375547 / 2284840496)
165+
Update state (0x81) committing, progress: 96.75 (2210543352 / 2284840496)
166+
Success! App '232330' fully installed.
167+
0
168+
>>> quit()
169+
f0rkz@test:~/mygameserver$ ls -lah
170+
total 132K
171+
drwxrwxr-x 7 f0rkz f0rkz 10 Mar 26 02:23 .
172+
drwxr-xr-x 6 f0rkz f0rkz 12 Mar 26 02:16 ..
173+
drwxrwxr-x 2 f0rkz f0rkz 28 Mar 26 02:23 bin
174+
drwxrwxr-x 9 f0rkz f0rkz 26 Mar 26 02:23 cstrike
175+
drwxrwxr-x 5 f0rkz f0rkz 15 Mar 26 02:23 hl2
176+
drwxrwxr-x 6 f0rkz f0rkz 8 Mar 26 02:23 platform
177+
-rwxrwxr-x 1 f0rkz f0rkz 8.0K Mar 26 02:23 srcds_linux
178+
-rwxrwxr-x 1 f0rkz f0rkz 9.6K Mar 26 02:23 srcds_run
179+
drwxrwxr-x 4 f0rkz f0rkz 6 Mar 26 02:23 steamapps
180+
-rwxrwxr-x 1 f0rkz f0rkz 47K Mar 26 02:22 thirdpartylegalnotices.txt
181+
```
77182

78-
Connecting anonymously to Steam Public...Logged in OK
79-
Waiting for license info...OK
80-
Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
81-
Update state (0x61) downloading, progress: 0.00 (4022 / 2284840496)
82-
Update state (0x61) downloading, progress: 1.47 (33674125 / 2284840496)
83-
Update state (0x61) downloading, progress: 3.40 (77714317 / 2284840496)
84-
Update state (0x61) downloading, progress: 5.10 (116511629 / 2284840496)
85-
Update state (0x61) downloading, progress: 6.36 (145424871 / 2284840496)
86-
Update state (0x61) downloading, progress: 7.33 (167444967 / 2284840496)
87-
Update state (0x61) downloading, progress: 10.08 (230359527 / 2284840496)
88-
Update state (0x61) downloading, progress: 12.78 (291997133 / 2284840496)
89-
Update state (0x61) downloading, progress: 15.33 (350367250 / 2284840496)
90-
Update state (0x61) downloading, progress: 18.04 (412233234 / 2284840496)
91-
Update state (0x61) downloading, progress: 19.97 (456273426 / 2284840496)
92-
Update state (0x61) downloading, progress: 21.65 (494684996 / 2284840496)
93-
Update state (0x61) downloading, progress: 23.44 (535579460 / 2284840496)
94-
Update state (0x61) downloading, progress: 24.86 (568085316 / 2284840496)
95-
Update state (0x61) downloading, progress: 24.96 (570182468 / 2284840496)
96-
Update state (0x61) downloading, progress: 24.96 (570182468 / 2284840496)
97-
Update state (0x61) downloading, progress: 26.10 (596396868 / 2284840496)
98-
Update state (0x61) downloading, progress: 26.52 (605834052 / 2284840496)
99-
Update state (0x61) downloading, progress: 27.30 (623659748 / 2284840496)
100-
Update state (0x61) downloading, progress: 28.48 (650769616 / 2284840496)
101-
Update state (0x61) downloading, progress: 29.66 (677730149 / 2284840496)
102-
Update state (0x61) downloading, progress: 31.13 (711284581 / 2284840496)
103-
Update state (0x61) downloading, progress: 32.42 (740644709 / 2284840496)
104-
Update state (0x61) downloading, progress: 32.51 (742741861 / 2284840496)
105-
Update state (0x61) downloading, progress: 32.51 (742741861 / 2284840496)
106-
Update state (0x61) downloading, progress: 33.59 (767584760 / 2284840496)
107-
Update state (0x61) downloading, progress: 34.35 (784937352 / 2284840496)
108-
Update state (0x61) downloading, progress: 35.46 (810103176 / 2284840496)
109-
Update state (0x61) downloading, progress: 36.79 (840511880 / 2284840496)
110-
Update state (0x61) downloading, progress: 38.67 (883501970 / 2284840496)
111-
Update state (0x61) downloading, progress: 40.23 (919153554 / 2284840496)
112-
Update state (0x61) downloading, progress: 41.61 (950813657 / 2284840496)
113-
Update state (0x61) downloading, progress: 42.85 (979125209 / 2284840496)
114-
Update state (0x61) downloading, progress: 44.28 (1011631065 / 2284840496)
115-
Update state (0x61) downloading, progress: 45.29 (1034699737 / 2284840496)
116-
Update state (0x61) downloading, progress: 46.52 (1063011289 / 2284840496)
117-
Update state (0x61) downloading, progress: 47.78 (1091603641 / 2284840496)
118-
Update state (0x61) downloading, progress: 49.24 (1125158073 / 2284840496)
119-
Update state (0x61) downloading, progress: 50.85 (1161861778 / 2284840496)
120-
Update state (0x61) downloading, progress: 52.70 (1204098614 / 2284840496)
121-
Update state (0x61) downloading, progress: 54.07 (1235382127 / 2284840496)
122-
Update state (0x61) downloading, progress: 55.17 (1260547951 / 2284840496)
123-
Update state (0x61) downloading, progress: 56.38 (1288228031 / 2284840496)
124-
Update state (0x61) downloading, progress: 58.49 (1336291743 / 2284840496)
125-
Update state (0x61) downloading, progress: 60.77 (1388412992 / 2284840496)
126-
Update state (0x61) downloading, progress: 62.50 (1427913512 / 2284840496)
127-
Update state (0x61) downloading, progress: 63.80 (1457642021 / 2284840496)
128-
Update state (0x61) downloading, progress: 65.10 (1487396657 / 2284840496)
129-
Update state (0x61) downloading, progress: 66.84 (1527171368 / 2284840496)
130-
Update state (0x61) downloading, progress: 68.68 (1569170292 / 2284840496)
131-
Update state (0x61) downloading, progress: 70.88 (1619533318 / 2284840496)
132-
Update state (0x61) downloading, progress: 72.69 (1660793181 / 2284840496)
133-
Update state (0x61) downloading, progress: 74.79 (1708838013 / 2284840496)
134-
Update state (0x61) downloading, progress: 75.39 (1722469501 / 2284840496)
135-
Update state (0x61) downloading, progress: 75.39 (1722469501 / 2284840496)
136-
Update state (0x61) downloading, progress: 76.46 (1746991720 / 2284840496)
137-
Update state (0x61) downloading, progress: 76.60 (1750137448 / 2284840496)
138-
Update state (0x61) downloading, progress: 76.67 (1751783050 / 2284840496)
139-
Update state (0x61) downloading, progress: 77.85 (1778682504 / 2284840496)
140-
Update state (0x61) downloading, progress: 78.86 (1801751482 / 2284840496)
141-
Update state (0x61) downloading, progress: 79.59 (1818528698 / 2284840496)
142-
Update state (0x61) downloading, progress: 80.85 (1847363192 / 2284840496)
143-
Update state (0x61) downloading, progress: 81.54 (1863091926 / 2284840496)
144-
Update state (0x61) downloading, progress: 82.45 (1883773660 / 2284840496)
145-
Update state (0x61) downloading, progress: 83.93 (1917612606 / 2284840496)
146-
Update state (0x61) downloading, progress: 85.58 (1955381097 / 2284840496)
147-
Update state (0x61) downloading, progress: 87.31 (1994933911 / 2284840496)
148-
Update state (0x61) downloading, progress: 89.62 (2047699106 / 2284840496)
149-
Update state (0x61) downloading, progress: 91.32 (2086518658 / 2284840496)
150-
Update state (0x61) downloading, progress: 91.50 (2090712962 / 2284840496)
151-
Update state (0x61) downloading, progress: 91.53 (2091224790 / 2284840496)
152-
Update state (0x61) downloading, progress: 92.60 (2115846060 / 2284840496)
153-
Update state (0x61) downloading, progress: 93.52 (2136818384 / 2284840496)
154-
Update state (0x61) downloading, progress: 94.42 (2157366218 / 2284840496)
155-
Update state (0x61) downloading, progress: 94.91 (2168451131 / 2284840496)
156-
Update state (0x61) downloading, progress: 94.91 (2168451131 / 2284840496)
157-
Update state (0x61) downloading, progress: 95.01 (2170904180 / 2284840496)
158-
Update state (0x61) downloading, progress: 95.15 (2174053630 / 2284840496)
159-
Update state (0x61) downloading, progress: 95.15 (2174053630 / 2284840496)
160-
Update state (0x61) downloading, progress: 95.46 (2181138751 / 2284840496)
161-
Update state (0x61) downloading, progress: 96.20 (2197916101 / 2284840496)
162-
Update state (0x61) downloading, progress: 97.29 (2222829813 / 2284840496)
163-
Update state (0x61) downloading, progress: 97.44 (2226375547 / 2284840496)
164-
Update state (0x81) committing, progress: 96.75 (2210543352 / 2284840496)
165-
Success! App '232330' fully installed.
166-
0
167-
>>> quit()
168-
f0rkz@test:~/mygameserver$ ls -lah
169-
total 132K
170-
drwxrwxr-x 7 f0rkz f0rkz 10 Mar 26 02:23 .
171-
drwxr-xr-x 6 f0rkz f0rkz 12 Mar 26 02:16 ..
172-
drwxrwxr-x 2 f0rkz f0rkz 28 Mar 26 02:23 bin
173-
drwxrwxr-x 9 f0rkz f0rkz 26 Mar 26 02:23 cstrike
174-
drwxrwxr-x 5 f0rkz f0rkz 15 Mar 26 02:23 hl2
175-
drwxrwxr-x 6 f0rkz f0rkz 8 Mar 26 02:23 platform
176-
-rwxrwxr-x 1 f0rkz f0rkz 8.0K Mar 26 02:23 srcds_linux
177-
-rwxrwxr-x 1 f0rkz f0rkz 9.6K Mar 26 02:23 srcds_run
178-
drwxrwxr-x 4 f0rkz f0rkz 6 Mar 26 02:23 steamapps
179-
-rwxrwxr-x 1 f0rkz f0rkz 47K Mar 26 02:22 thirdpartylegalnotices.txt
183+
You can upload items to the steam workshop:
184+
185+
```python
186+
import pysteamcmd
187+
import os
188+
189+
steamcmd_path = os.path.join('/','home','f0rkz','steamcmd')
190+
steamcmd = pysteamcmd.Steamcmd(steamcmd_path)
191+
steamcmd.install()
192+
steamcmd.upload_workshopfiles(user='foo', password='bar', workshop_vdf_path='/home/f0rkz/workshop/project/myvdf.vdf')
193+
```
180194

181195
This project is useful for designing gameserver control panels or the like. It is still under development and will be
182196
updated as time goes by and new features are requested/supported.

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = pysteamcmd
3-
version = 0.2.0
3+
version = 0.3.0
44
author = f0rkz
55
author_email = f0rkz@f0rkznet.net
66
description = Python package to install and utilize steamcmd

0 commit comments

Comments
 (0)