Skip to content

Bump ccxt to 4.4.96 and resolve Python warnings #2802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"configurations": [
{
"name": "windows-gcc-x64",
"includePath": [
"${workspaceFolder}/**"
],
"compilerPath": "gcc",
"cStandard": "${default}",
"cppStandard": "${default}",
"intelliSenseMode": "windows-gcc-x64",
"compilerArgs": [
""
]
}
],
"version": 4
}
24 changes: 24 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "C/C++ Runner: Debug Session",
"type": "cppdbg",
"request": "launch",
"args": [],
"stopAtEntry": false,
"externalConsole": true,
"cwd": "c:/Users/prave/python_examples/geekcomputers",
"program": "c:/Users/prave/python_examples/geekcomputers/build/Debug/outDebug",
"MIMode": "gdb",
"miDebuggerPath": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
59 changes: 59 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"C_Cpp_Runner.cCompilerPath": "gcc",
"C_Cpp_Runner.cppCompilerPath": "g++",
"C_Cpp_Runner.debuggerPath": "gdb",
"C_Cpp_Runner.cStandard": "",
"C_Cpp_Runner.cppStandard": "",
"C_Cpp_Runner.msvcBatchPath": "C:/Program Files/Microsoft Visual Studio/VR_NR/Community/VC/Auxiliary/Build/vcvarsall.bat",
"C_Cpp_Runner.useMsvc": false,
"C_Cpp_Runner.warnings": [
"-Wall",
"-Wextra",
"-Wpedantic",
"-Wshadow",
"-Wformat=2",
"-Wcast-align",
"-Wconversion",
"-Wsign-conversion",
"-Wnull-dereference"
],
"C_Cpp_Runner.msvcWarnings": [
"/W4",
"/permissive-",
"/w14242",
"/w14287",
"/w14296",
"/w14311",
"/w14826",
"/w44062",
"/w44242",
"/w14905",
"/w14906",
"/w14263",
"/w44265",
"/w14928"
],
"C_Cpp_Runner.enableWarnings": true,
"C_Cpp_Runner.warningsAsError": false,
"C_Cpp_Runner.compilerArgs": [],
"C_Cpp_Runner.linkerArgs": [],
"C_Cpp_Runner.includePaths": [],
"C_Cpp_Runner.includeSearch": [
"*",
"**/*"
],
"C_Cpp_Runner.excludeSearch": [
"**/build",
"**/build/**",
"**/.*",
"**/.*/**",
"**/.vscode",
"**/.vscode/**"
],
"C_Cpp_Runner.useAddressSanitizer": false,
"C_Cpp_Runner.useUndefinedSanitizer": false,
"C_Cpp_Runner.useLeakSanitizer": false,
"C_Cpp_Runner.showCompilationTime": false,
"C_Cpp_Runner.useLinkTimeOptimization": false,
"C_Cpp_Runner.msvcSecureNoWarnings": false
}
2 changes: 1 addition & 1 deletion CountMillionCharacter.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"""
import re

pattern = re.compile("\W") # re is used to compile the expression more than once
pattern = re.compile(r"\W") # re is used to compile the expression more than once
# wordstring consisting of a million characters
wordstring = """SCENE I. Yorkshire. Gaultree Forest.
Enter the ARCHBISHOP OF YORK, MOWBRAY, LORD HASTINGS, and others
Expand Down
4 changes: 2 additions & 2 deletions JARVIS/JARVIS_2.0.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ def get_app(Q):
"shell": "powershell.exe",
"paint": "mspaint.exe",
"cmd": "cmd.exe",
"browser": "C:\\Program Files\Internet Explorer\iexplore.exe",
"vscode": "C:\\Users\\Users\\User\\AppData\\Local\\Programs\Microsoft VS Code"
"browser": r"C:\\Program Files\Internet Explorer\iexplore.exe",
"vscode": r"C:\\Users\\Users\\User\\AppData\\Local\\Programs\Microsoft VS Code"
}
# master

Expand Down
2 changes: 1 addition & 1 deletion Organise.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def Organize(dirs, name):
print("{} Folder Exist".format(name))

src = "{}\\{}".format(destLocation, dirs)
dest = "{}\{}".format(destLocation, name)
dest = "{}\\{}".format(destLocation, name)

os.chdir(dest)
shutil.move(src, "{}\\{}".format(dest, dirs))
Expand Down
2 changes: 1 addition & 1 deletion Python Program to Remove Punctuations from a String.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# define punctuation
punctuations = '''!()-[]{};:'"\,<>./?@#$%^&*_~'''
punctuations = r'''!()-[]{};:'"\,<>./?@#$%^&*_~'''

my_str = "Hello!!!, he said ---and went."

Expand Down
2 changes: 1 addition & 1 deletion ReadFromCSV.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"""reading data from SalesData.csv file
and passing data to dataframe"""

df = pd.read_csv("..\SalesData.csv") # Reading the csv file
df = pd.read_csv(r"..\SalesData.csv") # Reading the csv file
x = df[
"SalesID"
].as_matrix() # casting SalesID to list #extracting the column with name SalesID
Expand Down
2 changes: 1 addition & 1 deletion SpeechToText.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
print(voice.id)
print(voice.name)

id ="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\TTS_MS_EN-US_DAVID_11.0"
id =r"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\TTS_MS_EN-US_DAVID_11.0"
engine.setProperty("voices",id )
engine.setProperty("rate",165)
engine.say("jarivs") # Replace string with our own text
Expand Down
23 changes: 13 additions & 10 deletions Street_Fighter/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,18 @@
- **Custom Controls** for two players.

## 📋 Table of Contents
- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Gameplay Instructions](#gameplay-instructions)
- [Downloads](#downloads)
- [License](#license)
- [Credits](#credits)
- [Contributing](#contributing)
- [Contact](#contact)
- [Street Fighter](#street-fighter)
- [Features](#features)
- [📋 Table of Contents](#-table-of-contents)
- [Requirements](#requirements)
- [Installation](#installation)
- [Gameplay Instructions](#gameplay-instructions)
- [Player Controls:](#player-controls)
- [Downloads](#downloads)
- [License](#license)
- [Credits](#credits)
- [Contributing](#contributing)
- [Contact](#contact)

## Requirements
- Python 3.7 or higher
Expand All @@ -56,7 +59,7 @@ Follow these steps to install and run the game:

2. **Install Dependencies**:
```bash
pip install -r requirements.txt
pip install -r
```

3. **Run the Game**:
Expand Down
2 changes: 1 addition & 1 deletion add_two_nums.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def addition(

# returning the result.
return f"The sum of {num1} and {num2} is: {sum_result}"
)


print(addition(5, 10)) # This will use the provided parameters
print(addition(2, 2))
Expand Down
13 changes: 7 additions & 6 deletions daily_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def print_docs(): # Function to print the daily checks automatically
# The command below passes the command line string to open word, open the document, print it then close word down
subprocess.Popen(
[
"C:\\Program Files (x86)\Microsoft Office\Office14\winword.exe",
"P:\\\\Documentation\\Daily Docs\\Back office Daily Checks.doc",
r"C:\Program Files (x86)\Microsoft Office\Office14\winword.exe",
r"P:\Documentation\Daily Docs\Back office Daily Checks.doc",
"/mFilePrintDefault",
"/mFileExit",
]
Expand All @@ -55,10 +55,11 @@ def rdp_sessions():

def euroclear_docs():
# The command below opens IE and loads the Euroclear password document
subprocess.Popen(
'"C:\\Program Files\\Internet Explorer\\iexplore.exe"'
'"file://fs1\pub_b\Pub_Admin\Documentation\Settlements_Files\PWD\Eclr.doc"'
)
subprocess.Popen([
r"C:\Program Files\Internet Explorer\iexplore.exe",
r"file://fs1/pub_b/Pub_Admin/Documentation/Settlements_Files/PWD/Eclr.doc"
])



# End of the functions
Expand Down
3 changes: 2 additions & 1 deletion encryptsys.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def encrypt():

fintext = str(nummoves) + "." + fintext

print("\Encrypted text : " + fintext)
print(r"\Encrypted text : " + fintext)



sel = input("What would you want to do?\n\n[1] Encrypt\n[2] Decrypt\n\n> ").lower()
Expand Down
2 changes: 1 addition & 1 deletion logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import os # Load the Library Module
from time import strftime # Load just the strftime Module from Time

logsdir = "c:\puttylogs" # Set the Variable logsdir
logsdir = r"c:\puttylogs" # Set the Variable logsdir
zip_program = "zip.exe" # Set the Variable zip_program - 1.1

for files in os.listdir(logsdir): # Find all the files in the directory
Expand Down
4 changes: 2 additions & 2 deletions nitkarshchourasia/to_sort/JARVIS_python_bot/JARVIS_2.0.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ def get_app(Q):
"shell": "powershell.exe",
"paint": "mspaint.exe",
"cmd": "cmd.exe",
"browser": "C:\\Program Files\Internet Explorer\iexplore.exe",
"vscode": "C:\\Users\\Users\\User\\AppData\\Local\\Programs\Microsoft VS Code",
"browser": r"C:\\Program Files\Internet Explorer\iexplore.exe",
"vscode": r"C:\\Users\\Users\\User\\AppData\\Local\\Programs\Microsoft VS Code",
}
# master

Expand Down
2 changes: 1 addition & 1 deletion psunotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"https://www.google.co.in/search?q=gate+psu+2017+ext:pdf&start=" + page
)
ht = br.open(p)
text = '<cite\sclass="_Rm">(.+?)</cite>'
text = r'<cite\sclass="_Rm">(.+?)</cite>'
patt = re.compile(text)
h = ht.read()
urls = re.findall(patt, h)
Expand Down
4 changes: 2 additions & 2 deletions puttylogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
import shutil # Load the Library Module - 1.2
from time import strftime # Load just the strftime Module from Time

logsdir = "c:\logs\puttylogs" # Set the Variable logsdir
zipdir = "c:\logs\puttylogs\zipped_logs" # Set the Variable zipdir - 1.2
logsdir = r"c:\logs\puttylogs" # Set the Variable logsdir
zipdir = r"c:\logs\puttylogs\zipped_logs" # Set the Variable zipdir - 1.2
zip_program = "zip.exe" # Set the Variable zip_program - 1.1

for files in os.listdir(logsdir): # Find all the files in the directory
Expand Down
2 changes: 1 addition & 1 deletion reading_csv.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pandas as pd

# reading csv file into python
df= pd.read_csv("c:\PROJECT\Drug_Recommendation_System\drug_recommendation_system\Drugs_Review_Datasets.csv") # Replace the path with your own file path
df= pd.read_csv(r"c:\PROJECT\Drug_Recommendation_System\drug_recommendation_system\Drugs_Review_Datasets.csv") # Replace the path with your own file path

print(df)

Expand Down
4 changes: 3 additions & 1 deletion recyclebin.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
# Description : Scans the recyclebin and displays the files in there, originally got this script from the Violent Python book


from winreg import OpenKey, HKEY_LOCAL_MACHINE, QueryValueEx

def sid2user(sid): # Start of the function to gather the user
try:
key = OpenKey(
HKEY_LOCAL_MACHINE,
"SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" + "\\" + sid,
r"SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" + "\\" + sid,
)
(value, type) = QueryValueEx(key, "ProfileImagePath")
user = value.split("\\")[-1]
Expand Down
2 changes: 1 addition & 1 deletion requirements_with_versions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Unidecode==1.4.0
Ball==0.2.9
pynput==1.8.1
gTTS==2.5.4
ccxt==4.4.95
ccxt==4.4.96
fitz==0.0.1.dev2
fastapi==0.116.1
Django==5.1.7
Expand Down
2 changes: 1 addition & 1 deletion simulate_memory_cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def print_help():


def mem():
pattern = re.compile('^(\d*)([M|G]B)$')
pattern = re.compile(r'^(\d*)([MG]B)$')
size = sys.argv[2].upper()
match = pattern.match(size)
if match:
Expand Down
2 changes: 1 addition & 1 deletion sqlite_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# Description : Runs checks to check my SQLITE database

dropbox = os.getenv("dropbox")
dbfile = "Databases\jarvis.db"
dbfile = r"Databases\jarvis.db"
master_db = os.path.join(dropbox, dbfile)
con = None

Expand Down
4 changes: 2 additions & 2 deletions sqlite_table_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

dropbox = os.getenv("dropbox")
config = os.getenv("my_config")
dbfile = "Databases\jarvis.db"
listfile = "sqlite_master_table.lst"
dbfile = r"Databases\jarvis.db"
listfile = r"sqlite_master_table.lst"
master_db = os.path.join(dropbox, dbfile)
config_file = os.path.join(config, listfile)
tablelist = open(config_file, "r")
Expand Down