jaraco/path

Maximize compatibility with `pathlib.Path`

オープン

#214 opened on 2023/07/07

 (7 件のコメント) (0 件のリアクション) (0 人の担当者)Python (151 件のフォーク)github user discovery
help wanted

Repository metrics

Stars
 (1,125 個のスター)
PR merge metrics
 (PR metrics pending)

説明

This project does aspire to align with pathlib where possible, so it should probably do the same (and probably implement iterdir at the same time, if it's not present already).

Originally posted by @jaraco in https://github.com/jaraco/path/issues/212#issuecomment-1623882608

Here some other methods that are worth considering:

set(vars(pathlib.Path)) - set(vars(path.Path)) 
Out[9]: 
{'__slots__',
 '_make_child_relpath',
 '_scandir',
 'absolute',
 'cwd',
 'group',
 'hardlink_to',
 'home',
 'is_block_device',
 'is_char_device',
 'is_dir',
 'is_fifo',
 'is_file',
 'is_mount',
 'is_socket',
 'is_symlink',
 'iterdir',
 'lchmod',
 'link_to',
 'replace',
 'resolve',
 'rglob',
 'symlink_to'}
  • absolute
  • cwd
  • group
  • hardlink_to
  • home
  • is_block_device
  • is_char_device
  • is_dir
  • is_fifo
  • is_file
  • is_mount
  • is_socket
  • is_symlink
  • iterdir
  • lchmod
  • link_to
  • owner
  • replace
  • resolve
  • rglob
  • suffix
  • symlink_to
  • with_stem
  • with_name

コントリビューターガイド