Skip to content
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

Project dependencies may have API risk issues #118

Open
PyDeps opened this issue Jul 16, 2022 · 0 comments
Open

Project dependencies may have API risk issues #118

PyDeps opened this issue Jul 16, 2022 · 0 comments

Comments

@PyDeps
Copy link

PyDeps commented Jul 16, 2022

Hi, In uds, inappropriate dependency versioning constraints can cause risks.

Below are the dependencies and version constraints that the project is using

tabulate==0.8.2
httplib2==0.18.0
cryptography==3.2
google_api_python_client==1.7.5
oauth2client==4.1.3
tqdm==4.31.1
wcwidth*

The version constraint == will introduce the risk of dependency conflicts because the scope of dependencies is too strict.
The version constraint No Upper Bound and * will introduce the risk of the missing API Error because the latest version of the dependencies may remove some APIs.

After further analysis, in this project,
The version constraint of dependency oauth2client can be changed to >=1.4,<=4.1.3.

The above modification suggestions can reduce the dependency conflicts as much as possible,
and introduce the latest version as much as possible without calling Error in the projects.

The invocation of the current project includes all the following methods.

The calling methods from the oauth2client
client.flow_from_clientsecrets
The calling methods from the all methods
do_upload
os.path.exists
encoder.decode
self.api.upload_single_file
build
parser.add_argument
self.create_root_folder
client.flow_from_clientsecrets
os.remove
print
id.self.service.files.delete.execute
self.api.delete_file
UDSFile
open
self.api.export_media
id_space.append
ntpath.basename
io.StringIO
self.service.files.get
tools.run_flow
time.sleep
convert_file
id.self.service.files.get.execute
argparse.ArgumentParser
file_metadata.self.service.files.create.execute
sys.stdout.flush
progress_bar_chunks.update
f.get
self.update
base64.decodebytes
items.sort
math.ceil
uds.wipe
info.get
sys.stdout.write
self.service.files
argparse.HelpFormatter
fh.getvalue
self.build_file
MimeTypes
instance
str
pathname2url
credentials.authorize
media_file.file_metadata.self.service.files.create.execute
encoder.encode
io.BytesIO
action.switcher.get
main
page_of_files.get
self.api.list_files
root_meta.self.service.files.create.execute
json.dump
uds.api.get_base_folder
format
self.upload_chunked_part
q.self.service.files.list.execute
sha.hexdigest
downloader.next_chunk
type
folder.get
MediaIoBaseDownload
self.download_part
self.delete_file
uds.erase
tabulate
ValueError
uds.build_file
self.api.create_media_folder
uds.delete_file
FileNotUDSError
os.listdir
os.stat
self.grab
files_upload.append
token.parent_id.format.self.service.files.list.execute
file_metadata.get.get
FileNotFoundError
uds.update
file_parts.UDSFile
progress_bar_speed.update
table.append
get_downloads_folder
_parse_args
f.read
sys.exit
file_parts.Chunk
parser.parse_args
switcher.get
_api.upload_single_file
f.close
self.api.get_base_folder
self.do_chunked_upload
self.service.files.create
self.hide_file
join
info.get.get
UDS
files.append
self.reauth
io.FileIO
int
list_.close
service.files.get_media
self.service.files.export_media
self.service.files.update
float
init.write
base64.encodebytes
MimeTypes.guess_type
self.service.files.list
self.service.files.delete
range
parser.print_help
uds.do_chunked_upload
service.files
mmap.mmap
uds.list
id.self.service.files.update.execute
os.makedirs
user.write
MediaIoBaseUpload
tqdm
json.load
file_id.service.files.get.execute
f.write
name_space.append
results.get
file_metadata.get
self.api.get_file
store.get
formatter
self.hash_file
os.getcwd
GoogleAPI
service.files.get
self.api.recursive_list_folder
sha.update
uds.grab
Http
fd.fileno
uds.batch
self.service.files.list.execute
Error.formatter
round
self.erase
file.Storage
props.get
len
hashlib.md5
os.path.join
uds.bunch

@developer
Could please help me check this issue?
May I pull a request to fix it?
Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant