Need Python to C Sharp Conversion
```
Summary:
Trying to port a CRC32 lib Martin Scharrer created in Python, I see no known C# version and I am barely a Python dev.
Sources:
https://github.com/MartinScharrer/crccheck/blob/main/crccheck/crc.py
https://github.com/MartinScharrer/crccheck/blob/main/crccheck/checksum.py
I do have the crc.py, I will add it to this post if anyone can give me a clue.
I appreciate you so much and yes I'd include his license and credit. 🙂
GitHub
crccheck/crc.py at main · MartinScharrer/crccheck
The crccheck python module implements all CRCs listed in the Catalogue of parametrised CRC algorithms as well as simple checksums. - crccheck/crc.py at main · MartinScharrer/crccheck
GitHub
crccheck/checksum.py at main · MartinScharrer/crccheck
The crccheck python module implements all CRCs listed in the Catalogue of parametrised CRC algorithms as well as simple checksums. - crccheck/checksum.py at main · MartinScharrer/crccheck
17 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Yeah my issue is I do not know python enough to convert
I found this site, but the output is sloppy and doesn't even work, probably AI based.: https://pythoncsharp.com/
I could call python from C# but I need all the return values etc.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Was hoping to port it to native C# and still keep the license under him (did email)
but if needed, will change title
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
well whatever is in the .py's to do all those checks, pretty much
i wish i knew python enough to figure it out 😦
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I tried so far:
well via that website converter
but it's a mess so far lol
and nothing works from conversion
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ok
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
sec
yeah i saw that too
Does this do what all those .py libs do?
how should i know
test it
yeah good point XD
thanks
this might just be enough to do it, well minus the checksum part but i can figure it out if i try hard enough. 🙂
question 2
python to C#
since this one has no native C# library, doing by hand:
Converted:
What is [0:2:] ?
was in .py too