CHANGELOG
2.2.7 - 2023.10.08
fix
exit 1 when cli had error
feat
cli add
configcommandcli support
--debugparameter
2.2.6 - 2023.09.22
fix
fix s3 client cache with profile name
fix s3 error info of endpoint url in s3 open
perf
optimize concurrent SFTP connections
optimize ls command with glob path
optimize sync command
add retry error
2.2.5.post1 - 2023.09.19
fix
fix s3 error info of endpoint url
fix
s3_openwhen s3 path with custom profile namefix
SmartPathextract protocol when path is inherited fromPurePath
2.2.5 - 2023.09.15
perf
Increase
connect_timeoutconfig in s3perf http open when web api support
Accept-Rangebut not bigger than block size.add retry for more errors
fix
fix
SftpPath.partsfix s3
ProfileNotFounderror when profile_name not in the config file
2.2.4.post1 - 2023.09.04
fix
fix sftp readlink
2.2.4 - 2023.09.04
perf
perf prefetch reader
setup s3 connect timeout
fix
prevent http Range header out-of-range in http prefetch reader
2.2.3 - 2023.08.25
feat
add
forceparam in sync methods for copy file forcelyadd
-f/--forceinrefile synccheck same file in copy, and raise
SameFileError
perf
Set the timeout for SSH connections.
2.2.2 - 2023.08.18
fix
fix
s3_accesswrite permission’s check
feat
support
AWS_S3_ADDRESSING_STYLEenv for setting s3 addressing style
perf
perf some s3 api
2.2.1.post1 - 2023.08.14
fix
remove unuseful print
fix smart copy from http to local
support all s3 other config for s3 profile mode
2.2.1 - 2023.08.07
fix
fix tqdm unit divisor to
1024
feat
all open func support
encodinganderrorsparametersadd
HttpPrefetchReaderfor perf http open
2.2.0.post1 - 2023.08.03
fix
change retry log leval to info
fix
megfile headcommand error from http pathfix retry not work in prefetch_reader
fix upload and download when local file path with protocol, like
file:///data/test.txt
2.2.0 - 2023.08.01
breaking change
sftp path protocol change for supporting relative path
- new protocol:
‒ sftp://[username[:password]@]hostname[:port]//absolute_file_path ‒ sftp://[username[:password]@]hostname[:port]/relative_file_path
feat
cli
Add
megfile tocommand, can write content from stdin to a fileAdd
megfile headandmegfile tailcommand
Add http and stdio methods in
__init__.py, now you can from megfile import them
2.1.4 - 2023.07.21
feat
add
SmartCache, andsmart_cachesupport more protocol
2.1.3.post1 - 2023.07.13
fix
fix the cleanup behavior of ThreadLocal after forking
2.1.3 - 2023.07.11
feat
add
http_exists
2.1.2 - 2023.07.07
feat
synccommand with-gsupport sync files concurrentlysynccommand add-w/--workerfor concurrent worker’s count, default 8
fix
fix sftp error when mkdir concurrently
fix
sftp_downloadandsftp_upload’scallbackparameter
2.1.1.post2 - 2023.07.07
fix
fix sftp client error when multi threads
fix
HttpPathmethod’s parameter
2.1.1.post1 - 2023.07.04
fix
fix dst_path check in SftpPath’s methods
2.1.1 - 2023.07.03
fix
fix
ls -rnot display directoriesfix
SftpPath.cwdfix sftp exec command method’s return data
2.1.0 - 2023.06.26
feat
smart_syncwill raiseIsADirectoryErrorwhen src_path is a file and dst_path is a directory
fix
fix
sftp_upload,sftp_download,sftp_copypath check, when path is not sftp or is dir, will raise errorsftp_copymakedir ifdst_path’s dir not exist
2.0.7 - 2023.06.16
perf
retry ConnectionError in sftp retry
2.0.6.post1 - 2023.06.16
fix
fix sftp retry bug when catch EOFError
fix the bug from new
urlsplitin py3.11.4fix the path list’s order returned by fs glob, now return path list in ascending alphabetical order
2.0.6 - 2023.06.13
fix
fix sftp connect timeout after long time
perf
smart_syncand other sync methods will ignore same filessmart_syncwill raiseFileNotFounderror when src_path is not exist
2.0.5.post1 - 2023.05.11
fix
fix
SftpPath.renameerror log
2.0.5 - 2023.05.11
feat
support python 3.11
perf
cli support s3 log
fix
fix
is_dirandis_fileofSftpPathwhen file not found
2.0.4 - 2023.04.12
feat
s3 path support custom profile name, like
s3[+profile_name]://bucket/keyremove
smart-openfrom requirementssmart_syncsupportmap_funcparameter for concurrentadd
smart_concat
perf
reduce the number of
s3_open’s requests
2.0.3 - 2023.03.22
feat
add smart_lstat
smart_scandir support ‘with’ operate
fix
fix smart_sync error when file name in dir is empty str
fix stat properties default value
fix smart_load_content when path is not fs or s3
2.0.2 - 2023.03.13
support s3 endpoint env: AWS_ENDPOINT
2.0.1 - 2023.03.01
cli
megfile lssupport glob pathmegfile cp,megfile mvandmegfile syncsupport-g,--progress-barperf err output
megfile syncsupport glob path
close ssh connection before process exit
2.0.0 - 2023.02.10
path classes align with
pathlib.Pathmethods(
glob,iglob,glob_stat,resolve,home,cwd,readlink) in all path classes return path objectmethods(
glob,iglob,glob_stat) in all path classes addpatternparameter. Functions(likesmart_glob,s3_glob) not change.relative_to’s parameterotherin all path classes change to*otherFSPath.partsalign withpathlib.Path.parts, return valueparts[0]will not befile://any more.mkdirin all path classes add parameters(mode=0o777,parents=False), Functions(likesmart_makedirs) not change.
change
s3_symlink,S3Path.symlink,s3_rename,S3Path.renameparameter name, changesrc_url,dst_urltosrc_path,dst_pathchange
fs_stat,FSPath.stat,s3_stat,S3Path.statparameter name, changefollowlinkstofollow_symlinksFileEntryadd methodinodeStatResultadd properties(st_mode,st_ino,st_dev,st_nlink,st_uid,st_gid,st_size,st_atime,st_mtime,st_ctime,st_atime_ns,st_mtime_ns,st_ctime_ns)support sftp protocol
1.0.2 - 2022.09.22
remove
smart_getmd5_by_pathsmethodretry when catch
botocore.exceptions.ResponseStreamingErrorremove
followlinksparameter in rename, move, remove; make behavior same as standard libraryfix
smart_renamebug, when rename file cross platform or device
1.0.1 - 2022.08.04
fix open mode with + in different order
sort
smart_getmd5_by_pathsparameter paths
1.0.0 - 2022.07.25
refactor code
add
smart_getmd5_by_pathschange of symlink’s parameters position
0.1.2 - 2022.04.26
handle s3 remove file errors
support s3 symlink
0.1.1 - 2022.01.14
fix smart api bug
0.1.0 - 2022.01.14
update get_md5, s3 use etag and support dir
fix py35 test about moto
add fs symlink support
support python 3.10
0.0.11 - 2021.12.08
smart_opensupport read and write pipe
0.0.10 - 2021.11.29
add info log about environ OSS_ENDPOINT and oss config file
smart_getsizeandsmart_getmtimesupport httpupdate cli cp and mv, make them like cp and mv in linux
fix sed warning in macOS
add some test code
add error code callback to _patch_make_request
Generate cache_path automatically
0.0.9 - 2021.10.11
megfile.s3retries when server returns 500 - 503remove
megfile.lib.fakefs
0.0.8 - 2021.09.15
megfile.s3.s3_memory_opensupport ab / rb+ / wb+ / ab+ modemegfile.s3.s3_opensupport ab / rb+ / wb+ / ab+ mode (by using s3_memory_open)Speed up
s3_globAccept
s3.endpoint_urlin aws config file
0.0.7 - 2021.09.06
[Breaking] Rename
megfile.interfaces.MegfilePathLiketomegfile.interfaces.PathLikeFix ungloblize
0.0.6 - 2021.09.01
[Breaking] Rename
megfile.s3.MEGFILE_MD5_HEADERtomegfile.s3.content_md5_header[Breaking] Remove
megfile.lib.get_image_size,megfile.smart.smart_load_image_metadataandmegfile.smart.IMAGE_EXTNAMES
0.0.5 - 2021.08.31
Refactor
process_local/thread_local, remove dependency onmultiprocessing.utils.register_after_fork
0.0.4 - 2021.08.29
Speed up
s3_glob
0.0.3 - 2021.08.24
First release of
megfile