- To install pipenv
pip install pipenv
- if you want to use .venv under the your_project/.venv
export PIPENV_VENV_IN_PROJECT=1
| import asyncio | |
| import asyncpg | |
| class Data: | |
| def __init__(self, query): | |
| self.query = query | |
| async def connect(self): |
| # -*- coding: utf-8 -*- | |
| # Form implementation generated from reading ui file 'designer\form.ui' | |
| # | |
| # Created by: PyQt5 UI code generator 5.8.2 | |
| # | |
| # WARNING! All changes made in this file will be lost! | |
| from PyQt5 import QtCore, QtGui, QtWidgets |
| alias changedns='expect /home/l50/Application/expect/change_dns && exit' |
| import paramiko | |
| from paramiko_expect import SSHClientInteraction | |
| class Connection: | |
| def __init__(self): | |
| self.client = paramiko.SSHClient() | |
| self.client.load_system_host_keys() | |
| self.client.set_missing_host_key_policy(paramiko.AutoAddPolicy) | |
| self.client.connect(hostname='192.168.1.24', username='ozcan', password='ozcan') |
| import os | |
| import sys | |
| path = '/home/pythonanywhereusername/projectname' # use your own PythonAnywhere username here | |
| if path not in sys.path: | |
| sys.path.append(path) | |
| os.environ['DJANGO_SETTINGS_MODULE'] = 'projectname.settings' |
| # -*- coding: utf-8 -*- | |
| # Form implementation generated from reading ui file 'ui_xml\calc.ui' | |
| # | |
| # Created by: PyQt5 UI code generator 5.8.2 | |
| # | |
| # WARNING! All changes made in this file will be lost! | |
| from PyQt5 import QtCore, QtGui, QtWidgets |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <ui version="4.0"> | |
| <class>MainWindow</class> | |
| <widget class="QMainWindow" name="MainWindow"> | |
| <property name="geometry"> | |
| <rect> | |
| <x>0</x> | |
| <y>0</y> | |
| <width>666</width> | |
| <height>444</height> |
| .idea/ | |
| venv/ |
| import pandas as pd | |
| class MultiToSingleDict: | |
| def __init__(self, data, sep='.'): | |
| self._data = data | |
| self._sep = sep | |
| self._out = {} |