-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
145 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import os | ||
import shutil | ||
import fnmatch | ||
|
||
def delete_dirs(dirs): | ||
for dir in dirs: | ||
for root, dirnames, filenames in os.walk('.'): | ||
for dirname in fnmatch.filter(dirnames, dir): | ||
dir_path = os.path.join(root, dirname) | ||
try: | ||
shutil.rmtree(dir_path) | ||
print(f"Deleted directory: {dir_path}") | ||
except FileNotFoundError: | ||
print(f"Directory not found: {dir_path}") | ||
except Exception as e: | ||
print(f"Error while deleting directory: {dir_path}. Error: {str(e)}") | ||
|
||
def delete_files(files): | ||
for file in files: | ||
for root, dirnames, filenames in os.walk('.'): | ||
for filename in fnmatch.filter(filenames, file): | ||
file_path = os.path.join(root, filename) | ||
try: | ||
os.remove(file_path) | ||
print(f"Deleted file: {file_path}") | ||
except FileNotFoundError: | ||
print(f"File not found: {file_path}") | ||
except Exception as e: | ||
print(f"Error while deleting file: {file_path}. Error: {str(e)}") | ||
|
||
# List of directories to delete | ||
dirs_to_delete = ["__pycache__", "build", "*.egg-info", "dist"] | ||
|
||
# List of files to delete | ||
files_to_delete = ["*.tmp"] | ||
|
||
# Delete directories | ||
delete_dirs(dirs_to_delete) | ||
|
||
# Delete files | ||
delete_files(files_to_delete) |
Binary file added
BIN
+202 KB
docs/docs/assets/images/Python_course_8_Phan_tich_du_lieu_bot_chung_khoan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[metadata] | ||
name = vnstock | ||
version = 0.2.9.0 | ||
version = 0.2.9.2.2 | ||
author = Thinh Vu | ||
author_email = [email protected] | ||
description = Vietnam Stock Market Data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ | |
from .integration import * | ||
from .funds import * | ||
# from .ocr import * | ||
|
||
update_notice() | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters