Skip to main content

My file-item

Project description

Documentation: https://file-item.readthedocs.io/en/latest/

Installation

pip install file_item

Examples:

from file_item import File

basedir = File.basedir(__file__)

file_1 = basedir.joinpath('test1.csv')
file_2 = File('/home/user/test2.csv')
file_3 = File.from_strings('/home/user/', 'test3.csv')

print(repr(file_1))
# PosixPath('test1.csv')

print(file_2)
# /home/user/test2.csv

print(file_1 == file_2)
# False

print(file_3.name)
# test3.csv

file_1.create_folder()

print(File.get_file_name('test*.csv'))
# test-.csv

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

file-item-1.0.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

file_item-1.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file file-item-1.0.0.tar.gz.

File metadata

  • Download URL: file-item-1.0.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9

File hashes

Hashes for file-item-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f070749b414ee916a9b84a37f6e0efc0b686cdf12c7d56248e2682756adaf27a
MD5 cacce06cc5701750ad9102ece85aafd6
BLAKE2b-256 46ff1615353103cdb54d4a19a84fb5c9e130d9ec5578fc0b1a244d025c700af9

See more details on using hashes here.

File details

Details for the file file_item-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: file_item-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9

File hashes

Hashes for file_item-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b37dd5738775f63f053ae206434d742f498f198b1e3bbfb6d2cd2923e568200
MD5 e9a4f1688c3ea33c98120e7275f718b5
BLAKE2b-256 0183f70936b9f875825053ea41fc34936169f5dbdba899b9978646d9e94757b7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page