Luda Lukashevskaya
Luda Lukashevskaya
If I need to select some fields only for back purposes and return in response only limited set of keys, is there any ability to specify what fields to serialize?
I can use ``` from Crypto.PublicKey import RSA from Crypto.Cipher import PKCS1_v1_5 public_key = RSA.importKey(api_key) cipher = PKCS1_v1_5.new(public_key) encrypted = base64.b64encode(cipher.encrypt(hashed)) ``` Is there a way to encrypt using your...
Why aac is detected only by extension and one of possible headers ADIF? ``` class AAC(FileType): ... @staticmethod def score(filename, fileobj, header): filename = filename.lower() s = endswith(filename, ".aac") or...
Fir example, I need field that will always have 4 bytes length. Use customtype? How will it work in other languages?
I have a scheme of t.Dict with several fields. I want when required field is absent to replace default error string. What is the best way to do it? without...
``` URL_REGEXP = re.compile( r'^(?:http|ftp)s?://' # http:// or https:// r'(?:\S+(?::\S*)?@)?' # user and password r'(?:(?:[A-Z0-9](?:[A-Z0-9-_]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|' # domain... r'localhost|' # localhost... r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})' # ...or ip r'(?::\d+)?' # optional port r'(?:/?|[/?]\S+)$', re.IGNORECASE,...