
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
PyFileMaster is an open-source Python package designed to simplify file handling tasks. Created by Shubhashish Chakraborty, this package provides a set of powerful and easy-to-use methods for handling files, including reading, writing, and converting between formats such as binary (.dat), CSV (Excel), and text files.
With PyFileMaster, file operations become seamless. Simply provide the file path, and let the library handle the heavy lifting for you — no need for extra code or complex logic!
Write Binary Files (writeBinFile
)
It creates a Binary file containing Data which is being passed, List of dictionaries to be stored in the file:
import pyfilemaster as pfm
pfm.writeBinFile("<path_name_of_your_binary_file>" , [
{
'name': 'Andrew',
'language': 'python'
},
{
'name': 'Tristan',
'language': 'JavaScript'
}
])
Read Binary Files (readBinFile
)
Effortlessly reads and prints the contents of a binary (.dat) file.
import pyfilemaster as pfm
fileData = pfm.readBinFile("<path_to_your_binary_file>")
print(fileData)
Convert Binary to CSV (convertBinToCSV
)
Converts data from a binary (.dat) file to a CSV (Excel) file in just one step.
import pyfilemaster as pfm
pfm.convertBinToCSV("<path_to_your_binary_file>", "<name_of_the_generated_csv_file>")
To get started with PyFileMaster, install it via pip
:
pip install pyfilemaster
Alternative commands (if pip requires specific environment handling):
pip3 install pyfilemaster
sudo pip install pyfilemaster
import pyfilemaster as pfm
readBinFile
or convertBinToCSV
to handle your file operations!We welcome contributions from the community! Here's how you can contribute:
If you encounter bugs or have feature requests, please open an issue on our GitHub Issues Page.
We are committed to making PyFileMaster a comprehensive file-handling utility. More features and functionalities will be continuously added in future updates to enhance its versatility and meet evolving user needs.
Stay tuned for exciting new capabilities, and feel free to suggest ideas or improvements by opening an issue on our GitHub repository!
This project is Licensed under the MIT License
Feel free to use, modify, and distribute this project in your own applications while respecting the terms of the license.
Created and maintained by Shubhashish Chakraborty
For any queries, reach out via email at shubhashish147@gmail.com.
PyPi Profile: beingshubh || Shubhashish Chakraborty
FAQs
A Python package for file handling utilities
We found that pyfilemaster demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.