Skip to main content

The file processing collection for Python

Project description

This is a powerful package for manipulatinf files. It contains all the attribute and functions in model sky-txt. So model sky-txt won't be updated from now on.

#History

0.0.1 (2024-11-09}

I have written packages since 2022.And I uplowded txt in Feb,2023. This time I add more files in to this model.

How to use PFI

  1. Install PFI
pip install PythonFileLib
  1. You're done! Now all there is to do is read the documentation.

Documentation

  1. Load Package
import PFI

dir(PFI)
  1. get files(examples)
from PFI import file
from file import file
f = file.file('C:/123.py',file.AP)
f.change_extension('.txt')  #it would become 123.txt
f.movefile('D:/')
  1. Get text in .txt files
from PFI import file
from file import txt

f = txt.txt('C:/123.txt')
f.write("123")
f.write("456")
print(f.read_first_line)  #return 123
f.change_txt_line(2,'123')  #line2 will become 123
  1. Read .csv files
from PFI import file
from file import csv

f = csv.csv('C:/123.csv')
f.read()

Functions and classes are updating......

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

pythonfilelib-0.0.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PythonFileLib-0.0.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file pythonfilelib-0.0.2.tar.gz.

File metadata

  • Download URL: pythonfilelib-0.0.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for pythonfilelib-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b197999143b1779578aebdb8edf756d5f909ac4e9d076c330b810910602c88e7
MD5 bc50a8611ff2a938adbe11f830f03fba
BLAKE2b-256 13ae7775d4ced4a43d12b4f436ac8bd34becf716ca8fff5d692376a55bcc306b

See more details on using hashes here.

File details

Details for the file PythonFileLib-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: PythonFileLib-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for PythonFileLib-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 341b7f01fb5d7afe1aeb6cdea3d7ae9417c9cf00de11c7da836f0398377d203c
MD5 ecee69d0e82dec9a6368913162ce1017
BLAKE2b-256 dab88b11d71aea76ea499a7bfd7f907a41c1ea75b3797c8d11af974e56a131e8

See more details on using hashes here.

Supported by

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