A
A
Andrey Grinevich2015-11-16 22:55:14
Python
Andrey Grinevich, 2015-11-16 22:55:14

How to rewrite c# code to python?

Good day.
I am writing a wrapper for steam authorization in python, successfully implemented https://api.steampowered.com/ISteamUserAuth/Authen...
interface, but ran into
https://api.steampowered.com/ISteamUserAuth/Authen...
(SteamWeb method .DoLogin is absolutely not interesting)
there was a problem when generating the loginKey/sessionKey to test the operation of the method, there is an example code in C # https://github.com/Jessecar96/SteamBot/blob/master...
but I try unsuccessfully to implement it in python, Maybe someone met with a similar or already have a ready-made solution?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Demidov, 2015-11-16
@ptitca_zu

In the line to which the link leads, the context manager is used. Keyword usingin C# and within Python. I didn’t see any more C#-specific constructions in this block.

D
Dimonchik, 2015-11-16
@dimonchik2013

isn't it in Python?
https://github.com/smiley/steamapi
https://pypi.python.org/pypi/steam

D
devel787, 2015-11-18
@devel787

Perhaps something will help pythonz.net/articles/44

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question