Questions tagged as 'python'

1
answer

Connection only works with manually set values

I have a Socket class that is working normally this way: class Socket(): __ffChatSocket = "" __meuTelefone = "" __WhatsappAPI = "" __dest = () def __init__(self, telefone, WhatsappAPI): ip = str(self.getFileConfigF...
asked by 14.09.2017 / 17:06
0
answers

Get information from another program using Python

Hello, I would like to know how can I get information from another program using Python. In issue, I want to develop a blind counter for PokerStars. Note: blinds in poker is the set of compulsory bets: big and small blind. Example: I e...
asked by 21.11.2017 / 08:02
1
answer

Flask connection between two machines

I have a Client-Server application in Flask, running the two files on the same machine the connection works perfectly, but when I try to run the client on a different machine, the connection is not established. I put the IP of the server machine...
asked by 12.09.2017 / 22:02
1
answer

Is there a size limit on csv writerow?

I'll create a CSC of 1,341 lines (with header). In Python 3 I used the csv commands, but the created file has 1,282 lines Line data is extracted from 1,340 PDFs, metadata. I created a list and a print to check, it's extracting everything righ...
asked by 16.09.2017 / 17:00
0
answers

Open files through the relative directory

How do I read the relative file path that is in a directory other than the python file and then open that file? For example: For file1 in the project_name / files / file1.txt directory and the python code in the project_name / src directory...
asked by 17.09.2017 / 01:44
1
answer

Problem with hashlib

I have a problem with using 'hashlib' from python, since I'm comparing the hashes generated with the line below, with the hashes generated on the site: ' link ', but when comparing the results I see they are different. Code used to generate...
asked by 06.09.2017 / 19:50
0
answers

Avoid repeated names in json

I'm looking for a form / function / method so that it is not possible to repeat the value saved in Json, for example: I'm saving the json below and I do not want it to save the same name in json. [ [ { "id": "59a5c80dc7596929783...
asked by 30.08.2017 / 15:56
1
answer

Download an encrypted file from a url

I have this url, it's an encrypted image of whatsapp: https://mmg-fna.whatsapp.net/d/f/Agli1Cej_5hAtjpKhGZ3xl2TKU9dWRXcOE_k0KLvJOWZ.enc And this is the key to decrypting: fhE5/WIJmz46IsnTeI0FpLrD7MneIWH7QWSUUvul0p4= I'm trying to decry...
asked by 06.09.2017 / 16:55
1
answer

Session not identified in some logins in django

I'm doing a maintenance on a Django app version 1.5 with DRF 2.3. This app has non-standard Django user authentication, and that works well. See a summary below: accounts / views.py class Autentica(TemplateView): template_name = 'checkuser....
asked by 30.08.2017 / 18:53
0
answers

Graphics interface package

I'm trying to start a very large project to start learning Python better and some other concepts, I have some basic knowledge about the language, I've done some scripts, mainly plugins for the Blender . But now I want to create a much more c...
asked by 18.09.2017 / 13:01