anonymousx86 / python-password Goto Github PK
View Code? Open in Web Editor NEWDesktop password manager with material design standard.
Home Page: https://anonymousx86.github.io/Python-Password/
License: GNU General Public License v3.0
Desktop password manager with material design standard.
Home Page: https://anonymousx86.github.io/Python-Password/
License: GNU General Public License v3.0
l made file json for language Arabic
ar.json
Traceback (most recent call last):
File "C:\Users\Admin\Downloads\Python-Password-master\Python-Password-master\python_password\PyManager.py", line 21, in
from python_password.exceptions.validation import *
ModuleNotFoundError: No module named 'python_password'
Description of the bug
It is possible that the alias of the password has some weird characters that makes the password hard to remove from the database.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I think you should make an extra safety step and check that passwords are only a-z, A-Z and 0-9 characters or something like that, to make the passwords easy to remove.
Version
v0.2.2
Traceback (most recent call last):
File "PyPassword.py", line 673, in <module>
PyPassword().run()
File "D:\Alt. Program Files x64\Python\Python37\lib\site-packages\kivy-1.11.1-py3.7-win-amd64.egg\kivy\app.py", line 854, in run
self.dispatch('on_start')
File "kivy\_event.pyx", line 707, in kivy._event.EventDispatcher.dispatch
File "PyPassword.py", line 104, in on_start
self.update_passwords_list()
File "PyPassword.py", line 517, in update_passwords_list
self._fetch_passwords()
File "PyPassword.py", line 476, in _fetch_passwords
q = gel_all_passwords()
File "D:\Alt. Program Files x64\Python\Python37\lib\site-packages\python_password-0.2.5-py3.7.egg\python_password\utils\database.py", line 59, in gel_all_passwords
return query('SELECT `name`, `password` FROM `passwords`;')
File "D:\Alt. Program Files x64\Python\Python37\lib\site-packages\python_password-0.2.5-py3.7.egg\python_password\utils\database.py", line 30, in query
my_cursor.execute(q_input, q_args)
sqlite3.OperationalError: no such table: passwords
Why am I facing this error? Any work-around for this?
Please look into the matter.
The header() function could be shortened to this:
dashes = '-' * (len(Program.name) + len(Program.version) + 10) + '\n'
prog_info = f'+++ {Program.name} v{Program.version} +++\n'
h_text = dashes + prog_info + dashes
return h_text
This makes use of string repetition (*
) instead of using loops.
Whenever you find yourself manually handling resources you should first think 'Is there a context manager for this?'.
Context managers handle the gathering and releasing of resources for you.
This link explain them fairly well: https://jeffknupp.com/blog/2016/03/07/python-with-context-managers/
There are a few places you have used a context manager within the script, which is great! However, there are some places you haven't used them and haven't closed the file!
You can also use a context manager for sqlite3
cursors too. These give the added benefit of automatically committing or rolling back transactions.
You can read about them here: https://docs.python.org/2/library/sqlite3.html#using-the-connection-as-a-context-manager
When I run the program with the command python PyPassword.py
, it gives an error saying No Module named python_password
. I am using vscode, which shouldn't make a difference.
Steps to reproduce the behavior:
I had expected to see the password manager.
Version
v'0.2.5'
The library getpass
that ships with python that can be used when asking a user to enter a password. This hides the characters that they type while entering the password.
To use it, first import the module and then replace and input()
calls with getpass()
instead. Like so:
from getpass import getpass
pswd = getpass('Password:')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.