SymPy is a Python library for symbolic mathematics. If you are new to SymPy, start with the introductory tutorial.
You can find a simple example with a partial differentiation on my GitHub colab repo.
Is a blog about python programming language. You can see my work with python programming language, tutorials and news.
import pyotp
# Generare secret pentru utilizator
secret = pyotp.random_base32()
# Generare URL pentru codul QR
uri = pyotp.totp.TOTP(secret).provisioning_uri(name="UtilizatorExemplu", issuer_name="NumeServer")
# Exemplu de folosire a URI-ului într-o aplicație web sau pentru a genera un cod QR
print("Scanati urmatorul QR code in aplicatia Microsoft Authenticator:")
print(uri)
python test_001.py
Scanati urmatorul QR code in aplicatia Microsoft Authenticator:
otpauth://totp/NumeServer:UtilizatorExemplu?secret=SPZICPQHAMWOIYCAZEHXZTPQDXEXZSWL&issuer=NumeServer
from google.colab import auth
auth.authenticate_user()
import gspread
from google.auth import default
creds, _ = default()
gc = gspread.authorize(creds)
# Open the spreadsheet by name
spreadsheet = gc.open('fiecare_saptamana')
# Choose a worksheet from the spreadsheet
worksheet = spreadsheet.get_worksheet(0) # 0 represents the index of the first worksheet
# Get and print the data
data = worksheet.get_all_values()
#uncoment this line to print data sau add more source code to parse data
#print(data)
#the result will be
#[['noreply@projects.blender.org', '437', 'notifications@github.com', ...
python
Python 3.13.0a1 (tags/v3.13.0a1:ad056f0, Oct 13 2023, 09:51:17) [MSC v.1935 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> help()
Welcome to Python 3.13's help utility!
If this is your first time using Python, you should definitely check out
the tutorial on the internet at https://docs.python.org/3.13/tutorial/.
Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules. To quit this help utility and
return to the interpreter, just type "quit".
To get a list of available modules, keywords, symbols, or topics, type
"modules", "keywords", "symbols", or "topics". Each module also comes
with a one-line summary of what it does; to list the modules whose name
or summary contain a given string such as "spam", type "modules spam".
help> modules
Please wait a moment while I gather a list of all available modules...
test_sqlite3: testing with SQLite version 3.43.1
__future__ _testcapi fractions runpy
__hello__ _testclinic ftplib sched
__phello__ _testclinic_limited functools secrets
_abc _testconsole gc select
_aix_support _testimportmultiple genericpath selectors
_ast _testinternalcapi getopt shelve
_asyncio _testmultiphase getpass shlex
_bisect _testsinglephase gettext shutil
_blake2 _thread glob signal
_bz2 _threading_local graphlib site
_codecs _tkinter gzip smtplib
_codecs_cn _tokenize hashlib socket
_codecs_hk _tracemalloc heapq socketserver
_codecs_iso2022 _typing hmac sqlite3
_codecs_jp _uuid html sre_compile
_codecs_kr _warnings http sre_constants
_codecs_tw _weakref idlelib sre_parse
_collections _weakrefset imaplib ssl
_collections_abc _winapi importlib stat
_compat_pickle _wmi inspect statistics
_compression _xxinterpchannels io string
_contextvars _xxsubinterpreters ipaddress stringprep
_csv _zoneinfo itertools struct
_ctypes abc json subprocess
_ctypes_test antigravity keyword symtable
_datetime argparse linecache sys
_decimal array locale sysconfig
_elementtree ast logging tabnanny
_functools asyncio lzma tarfile
_hashlib atexit mailbox tempfile
_heapq base64 marshal test
_imp bdb math textwrap
_io binascii mimetypes this
_json bisect mmap threading
_locale builtins modulefinder time
_lsprof bz2 msvcrt timeit
_lzma cProfile multiprocessing tkinter
_markupbase calendar netrc token
_md5 cmath nt tokenize
_multibytecodec cmd ntpath tomllib
_multiprocessing code nturl2path trace
_opcode codecs numbers traceback
_opcode_metadata codeop opcode tracemalloc
_operator collections operator tty
_osx_support colorsys optparse turtle
_overlapped compileall os turtledemo
_pickle concurrent pathlib types
_py_abc configparser pdb typing
_pydatetime contextlib pickle unicodedata
_pydecimal contextvars pickletools unittest
_pyio copy pip urllib
_pylong copyreg pkgutil uuid
_queue csv platform venv
_random ctypes plistlib warnings
_sha1 curses poplib wave
_sha2 dataclasses posixpath weakref
_sha3 datetime pprint webbrowser
_signal dbm profile winreg
_sitebuiltins decimal pstats winsound
_socket difflib pty wsgiref
_sqlite3 dis py_compile xml
_sre doctest pyclbr xmlrpc
_ssl email pydoc xxsubtype
_stat encodings pydoc_data zipapp
_statistics ensurepip pyexpat zipfile
_string enum queue zipimport
_strptime errno quopri zlib
_struct faulthandler random zoneinfo
_symtable filecmp re
_sysconfig fileinput reprlib
_testbuffer fnmatch rlcompleter
Enter any module name to get more help. Or, type "modules spam" to search
for modules whose name or summary contain the string "spam".
help> ^Z
>>>
python.exe -m pip install --upgrade pip
~/Django001$ python
Python 3.8.12 (default, Aug 30 2021, 16:42:10)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import secrets
>>> secrets.token_urlsafe(32)
'yIXPv6u4uCt4AUWlkU4NCuoyJiZlLx5IFm8kG6h8RtA'
~/Django001$ python manage.py startapp catafest001
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'catafest001',
]
~/Django001$ python manage.py createsuperuser
Username (leave blank to use 'runner'):
Email address: catafest@yahoo.com
Password:
Password (again):
The password is too similar to the username.
Bypass password validation and create user anyway? [y/N]: y
Superuser created successfully.
pip3 install Django==5.0b1
Collecting Django==5.0b1
...
Installing collected packages: tzdata, sqlparse, asgiref, Django
Successfully installed Django-5.0b1 asgiref-3.7.2 sqlparse-0.4.4 tzdata-2023.3
import time
from plyer import notification
if __name__ == "__main__":
while True:
notification.notify(title="Test",message="Text message",timeout=10)
time.sleep(3000)
import pyautogui
import time
# Display a short notification to prompt the user to activate the modal dialog window
print("Please activate the modal dialog window.")
# Wait for the user to activate the modal dialog window (you can click in the dialog window)
time.sleep(10) # Wait 10 seconds or enough time to activate the window
# Get the coordinates where you want to read the text on the label
x_label = 200 # Replace with the correct x coordinates
y_label = 300 # Replace with the correct y coordinates
# Move the mouse cursor to the coordinates of the label
pyautogui.moveTo(x_label, y_label)
# Select the text in the label using the mouse
pyautogui.dragTo(x_label + 200, y_label, duration=1) # Substitute the appropriate coordinates and duration
# Copies the selected text to the clipboard
pyautogui.hotkey("ctrl", "c")
# You can use the clipboard to access the read text
import clipboard
text_copied = clipboard.paste()