Saravanan666/pypi-org huggingface dataset:
Package: pyfigure
pyfigureGenerate configuration files for classes.Installationpip install pyfigureUsageTo generate a configuration file for a class, you must extend the class withConfigurable, from thepyfiguremodule.Then, to add options to the configuration, create a newConfigclass, and add variables of theOptionclass.classYourClass(Configurable):classYourConfig(Config):option_name:type=Option(default,description)classsub_config:cub_option:type=Option()Where the arguments are as follows:argumentdescriptiondefaultThe default value of the optiondescriptionA comment to explain what the option is for, optionaltypeAssign a different type, optionallyfile.pyfrompathlibimportPathfrompyfigureimportConfigurable,Config,Optionfrompyfigure.typesimportList,Choice,Color,Number,TimeclassExampleClass(Configurable):#config_file = 'other_file.toml'classExampleConfig(Config):any_option=Option('any',"Any value works here")time_option:Time=Option('12:00:00 e',"It's High Noon.")string_option:str=Option('default',"Any string works here")integer_option:int=Option(24,"Any integer here")float_option:float=Option(15.55,"Any float")bool_option:bool=Option(True,"Any boolean")list_option:list=Option(['e','a','o'],"A list of things")int_list_option:List[int]=Option([1,2,3],'A list of integers')choice_option:Choice['spam','eggs']=Option('spam','Either "spam" or "eggs"')classsub_config:sub_option:str=Option('this value in a sub value')classsub_sub_config:sub_sub_option:str=Option('this value is a sub value of a sub value')list_of_dicts_option:List[dict]=Option([{"foo":"bar"}])path_option:Path=Option('test/',"A value that can be created using another value")color_option:Color=Option('#33ff33',"A hex color value")time_option:Time=Option('12:00:00',"It's High Noon")number_option:Number(min=0,max=15)=Option(10,"A very specific number")#def __init__(self):#    Configurable.__init__(self)ec=ExampleClass()print(ec.config)This class, when initialized, will print:{'any_option':'any','time_option':datetime.datetime(1900,1,1,12,0),'string_option':'default','integer_option':24,'float_option':15.55,'bool_option':True,'list_option':['e','a','o'],'int_list_option':[1,2,3],'choice_option':'spam','path_option':PosixPath('test'),'color_option':#33FF33,'number_option':10,'list_of_dicts_option':[{'foo':'bar'}],'sub_config':{'sub_option':'this value in a sub value','sub_sub_config':{'sub_sub_option':'this value is a sub value of a sub value'}}}And create a new file:file.tomlany_option="any"# Any value works heretime_option="12:00:00"# It's High Noonstring_option="default"# Any string works hereinteger_option=24# Any integer herefloat_option=15.55# Any floatbool_option=truelist_option=["e","a","o"]# A list of thingsint_list_option=[1,2,3]# A list of integerschoice_option="spam"# Either "spam" or "eggs"path_option="test/"# A value that can be created using another valuecolor_option="#33ff33"# A hex color valuenumber_option=10# A very specific number[[list_of_dicts_option]]foo="bar"[sub_config]sub_option="this value in a sub value"[sub_config.sub_sub_config]sub_sub_option="this value is a sub value of a sub value"
Package: pyfii
Pyfii简介这个库的功能是可以让我们用python写Fii的无人机程序，以解决原软件无运算能力，无循环模块，一块块拖太烦等问题。此外，这个库有三视图模拟飞行的功能，模拟飞行更方便观看。安装使用pip install安装在命令行输入pip install pyfii下载源代码在命令行输入git clone https://github.com/Kevin0412/pyfii.gitpyfii就会被下载到当前目录下，使用时将pyfii文件夹复制到项目目录下使用教程请见./doc/doc_zh_CN.md目录结构说明src/pyfii
├── cv3d
│   ├── IIID2.py
│   ├── IIID.py
│   └── transfer.py
├── drone.py
├── fii.py
├── __init__.py
├── read.py
└── show.py项目结构(核心部分)如上图其中cv3d是使用OpenCV实现的3d图形库drone.py定义了Drone类，实现无人机的基本指令fii.py定义了Fii类，保存无人机和音乐，并能将其保存为*.fii文件read.py用来读取和转换无人机动作文件show.py用来预览无人机飞行效果许可证和作者许可证：GNU General Public License v3 (GPLv3)作者：主要作者：github@Kevin0412代码开发，无人机测试，编写说明文档，在bilibili.com上传演示视频等工作次要作者：github@miaooo0000OOOO上传模块到pypi，debug，无人机测试，写这个README
Package: pyFileArchiverGrigoriew
pyFileArchiver ManualInstall1.Open your project in terminal2.Input "pip install pyFileArchiver"ExamplefrompyFileArchiver.archiverimportarcZip,arcExtractarcZip('path/to/save/archive.zip',['path/to/archive/directory','path/to/archive/file',],'extension for archiving specific files (default: None)')arcExtract('path/to/archive.zip','path/to/extract/archive.zip',['file names if you want to extract specific files (default: None)'])
Package: py-file-change
py-file-changepy-file-change is a tool that execute specific command when any file changes in the directory.UsageStart cmd/terminal and run following command.$python-mpy-file-changeconfig.jsonConfig filepy-file-change requires a configuration file to continue/start the process.Create a configuration file in root directory or current working directory where you execute thepy-file-changeConfiguration file must be JSON file and should content required data.NameTypeDefault valueDescriptioncmdrequired-command to executewatchoptional.directory to watchexclude_endsoptional[]ending files will be excludeddo_printoptionalfalseprint created, changed, deleted filesuse_killoptionalfalseuses kill method instead terminate methodBelow is the configuration file example that will used to execute commandpython app.py, watch current directory(.) , if the name of file changed is ending with.jsonprocess won't terminate{"cmd":"python app.py","watch":".","exclude_ends":[".json"],"do_print":false,"use_kill":false}py-file-changewill take moreCPUandMemorywhen you use it to detect changes in directory that contains large number of files.
Package: pyfilehandling
PyFileHandling - Streamlining Pythonic File OperationsOverviewPyFileHandling is a Python package designed to simplify file handling operations. Whether you need to create, modify, or read files, this package offers an array of convenient functions to streamline your file manipulation tasks.FeaturesFile Creation: Easily create files at specified paths.Directory Manipulation: Create, remove directories, and manage file structures.File Writing: Write data to files with options for overwriting or appending.File Reading: Read file contents, individual lines, or use generators to efficiently handle large files.Tested and Reliable: Thoroughly tested with a focus on robustness and reliability.InstallationYou can install PyFileHandling using pip:pipinstallpyfilehandlingGetting StartedFor detailed usage instructions, consult thePyFileHandling Documentation.Here's a quick start with some common use cases:importpyfilehandling# Create a directorypyfilehandling.fileio.create_dir("my_directory")# Write data to a filepyfilehandling.write("my_file.txt","Hello, PyFileHandling!")# Read file contentcontent=pyfilehandling.read("my_file.txt")print(content)ContributingContributions are welcome! To contribute to PyFileHandling, please read theContribution Guidelines. We appreciate your help in making this package even better.Code of ConductWe strive to maintain a positive and inclusive community. We encourage everyone participating in PyFileHandling to read and adhere to theCode of Conduct. It's essential for creating a welcoming and collaborative environment.LicenseBy contributing toPyFileHandling, you agree that your contributions will be licensed under theMIT License. Make sure you understand and agree with this before submitting your contributions.
Package: pyfileindex
pyfileindexPyFileIndex - pythonic file system indexThe pyfileindex helps to keep track of files in a specific directory, to monitor added files, modified files and deleted files. The module is compatible with Python 3.7 or later but restricted to Unix-like system - Windows is not supported.InstallationThe pyfileindex can either be installed via pip using:pip install pyfileindexOr via anaconda from the conda-forge channelconda install -c conda-forge pyfileindexUsageImport pyfileindex:from pyfileindex import PyFileIndex 
pfi = PyFileIndex(path='.')Or you can filter for a specifc file extension:def filter_function(file_name):
    return '.txt' in file_name
    
pfi = PyFileIndex(path='.', filter_function=filter_function)List files in the file system index:pfi.dataframeUpdate file system index:pfi.update()And open a subdirectory using:pfi.open(path='subdirectory')For more details, take a look at the example notebook:https://github.com/pyiron/pyfileindex/blob/main/notebooks/demo.ipynbLicenseThe pyfileindex is released under the BSD licensehttps://github.com/pyiron/pyfileindex/blob/main/LICENSE. It is a spin-off of the pyiron projecthttps://github.com/pyiron/pyirontherefore if you use the pyfileindex for your publication, please cite:@article{pyiron-paper,
  title = {pyiron: An integrated development environment for computational materials science},
  journal = {Computational Materials Science},
  volume = {163},
  pages = {24 - 36},
  year = {2019},
  issn = {0927-0256},
  doi = {https://doi.org/10.1016/j.commatsci.2018.07.043},
  url = {http://www.sciencedirect.com/science/article/pii/S0927025618304786},
  author = {Jan Janssen and Sudarsan Surendralal and Yury Lysogorskiy and Mira Todorova and Tilmann Hickel and Ralf Drautz and Jörg Neugebauer},
  keywords = {Modelling workflow, Integrated development environment, Complex simulation protocols},
}
Package: pyfileloader
file_loaderfileloaderare functions for quickly loading files into lists. Supported types
aretxt,jsonl/ndjson, andcsv.Buildingpip3 install build && python3 -m buildInstallingpip3 install pyfileloaderUsage>>> from fileloader import load_jsonl
>>> items = load_jsonl('test-10.jsonl')
>>> len(items)
10
>>> comp_items = load_jsonl('compress-10.jsonl.gz')
>>> len(comp_items)
10
Package: pyfilemaker2
PyFileMaker - Integrating FileMaker and Python(c) 2016-2022 Jeremie Borel(c) 2014-2016 Marcin Kawa,kawa.macin@gmail.com(c) 2006-2008 Klokan Petr Pridal,klokan@klokan.cz(c) 2002-2006 Pieter Claerhout,pieter@yellowduck.beOld project urls:https://github.com/aeguana/PyFileMakerhttp://code.google.com/p/pyfilemaker/http://www.yellowduck.be/filemaker/TABLE OF CONTENTSWhat is pyfilemaker2 ?RequirementsHow to install pyfilemaker2DocumentationChanges1. WHAT IS pyfilemaker2?pyfilemaker2 is based, but largely rewritten, from PyFileMaker
(https://github.com/aeguana/PyFileMaker) whose description is still valid:PyFileMaker is a set of Python modules that makes it easy to access and modify
data stored in a FileMaker Pro/Server database. You can use it to query a FileMaker
database, but you can also use it to add data to a FileMaker database, you
can even use it to delete records and execute FileMaker scripts.pyfilemaker2 implements the following additional features:FM server responses can be streamed and parsed 'on the fly' during the streaming.FM server responses can be automatically paginated as large dataset (>20k records)
tend to trigger FMS and/or network timeouts.meant to be thread safe, though I can't claim to be an expert on the subject...More consistent and finer control on the way data types are cast when reading or
writting FM records (in particular dates, datetimes and float objects)python 3 compatibleimproved test battery2. REQUIREMENTSAt the time of the development (2022), pyfilemaker2 is using:requests=2.28.1
lxml=4.9.1The test suite also requiresmock
pytzThe code has been tested on Max OSX 12.6 and is used in production on
debian jessie. Other plateforms have not been tested.You will also need a FileMaker server with the XML enabled of course.
Currently version FMS18 and FMS19 are working. Most probably older versions
of FMS too.3. HOW TO INSTALL PYFILEMAKER2You can install from pypi using pip$ pip install pyfilemaker24. DOCThere are no external docs but the function in the FmServer class have
extensive docstring. Starts in particular with the server.py file. Moreover an
FmServer object is likely the unique thing one will need to import from this
package.5. CHANGES0.2.5:server_timezone parameter now requires a zoneinfo.ZoneInfo object or None.0.2.4:Fixhttps://github.com/jeremie-borel/pyfilemaker2/issues/1that prevented FMS 19 to work.0.2.3:0.2.2:BackCast now cast numbers correctly0.2.1:Bugfix on import in test_server.py0.2.0:No longer support python2.7 as thefuturelibrary was removed0.1.14:Minor change in FmServer.get_file to allow downloading of
badly formatted filenames.0.1.13:changed the BackCast function so that query parameters may be
bytestring0.1.12:improving this readmebug fix in the FmServer.fetched_records_number function0.1.11: enforcing stream=True by default as FMS now requires it.0.1.10: bug fix with the stream argument.0.1.9:adding timezone support as FM datetime object are naive datetimechanged the way the options are passed to FmServer object
so that a subclass with default
parameters can be used.0.1.6: bug fixes indo_find_queryVersion 0.1First release of the code
Package: pyfilemv
pyfilemvThis small python package provides an extension to the normal unixmvcommand.In addition to simply renaming a file or directory,pymvalso searches through user-defined
directories and asks the user if he or she wants to update any reference to the file that was renamed.
Thus, you do not have to manually update all scripts or documents that reference that file.
For a showcase of the package, see theDemonstrationbelow.Installationpymvcan simply be installed viaPyPI.pipinstallpyfilemvUsageUsepymvjust like you would usemv, i.e. specify the file or directory which you want to rename as well as the new
name as positional arguments. In addition you have to set aroot directoryusing the-rflag.pymvwill then search through filesandsubdirectories that are part of theroot directory. Only files that have a
specific file extension (by default: R, Rmd, RMD, txt, py, ipynb, md, pl, cpp or java) will be evaulated.You can extend the list of extensions, either by adding file extensions with the-eflag, or by creating a file.pyfilemvfile in
your home directory, where each line corresponds to one file extension.You can also set the-aflag, if you only want to search and replace absolute paths. This might be helpful if you get to many
'false positive' hits.Ifpymvfinds a match in any of the files, it shows you the old line and how the new line would look like if you want to
update the file. You can confirm that you want to do the replacement by typingy.You can get help by runningpymv -husage:pymv[-h][-rROOT][-eEXTENSION[EXTENSION...]][-a]sourcedestination

positionalarguments:sourceSourcefile.destinationDestinationofthesourcefileafterthemove.

optionalarguments:-h,--helpshowthishelpmessageandexit-rROOT,--rootROOTSpecifytheabsolutepathtoadirectory.Allfilesthatarepartofthatdirectory(andalsosubdirectories)arecheckediftheycontainthefileyouwanttomove.-eEXTENSION[EXTENSION...],--extensionEXTENSION[EXTENSION...]Specifyfileextensionswhichshouldbeincludedinthesearch.Shouldlooklikethis:-eext1ext2ext3.Bydefault,theprogramsearchesinthefollowingfiles:R,Rmd,RMD,txt,py,ipynb,md,pl,cpp,andjava-a,--absoluteIfyousetthisflag,theprogramwillsearchfortheabsolutefilepath.DemoBelow is a small demo to showcase the function of the package. Here, we use it to rename a results object
and show that the documentation that we wrote for this object, was automatically updated.
Package: pyfilename
이 설명은 최신 버전이 아닐 수 있습니다. 만약 최신 버전을 확인하고 싶으시다면여기를 참고하세요.pyfilename안전한 파일 이름을 제공하는 라이브러리입니다.시작하기파이썬을 설치합니다.cmd 창을 열어 pip 명령어를 실행합니다.pip install -U pyfilename파일 이름 변환하기다음과 같은 함수를 통해 파일 이름을 변환할 수 있습니다.translate_to_safe_name: 파일명으로 사용하기에 안전한 string으로 변환합니다.translate_to_safe_path_name: 파일 경로로 사용하기에 안전한 string으로 변환합니다.safe_name_to_original_name: 파일명으로 사용하기에 안전한 string으로 변환한 값을 다시 일반적인 값으로 변경할 때 쓰입니다.is_vaild_file_name: 파일명으로 쓸 수 있는지 확인합니다. 파일명으로 사용이 부적합하면 False를 반환합니다.예시>>>importpyfilenameaspf>>>>>>pf.is_vaild_file_name('hello_world?.txt')# Character '?' is invalid to use in file nameFalse>>>(safe_name:=pf.translate_to_safe_name('hello_world?.txt'))# Convert to safe name'hello_world？.txt'>>>pf.is_vaild_file_name(safe_name)# Now it's True.TrueRelese Note0.2.0 (Sep 10, 2023): 전체적인 구현 변경0.1.0: 첫 릴리즈
Package: pyfilerver
pyfilerverpython http file serverInstall & RunSourcegitclonegit@github.com:IanVzs/pyfilerver.gitcdpyfilerver
pythonpyfilerver/main.pyPipMake sure you have pip installed.pipinstallpyfilerverLocalgit clone git@github.com:IanVzs/pyfilerver.git
cd pyfilerver
pip install .
pyfilerverUseWhen the program is running, use the web browser to accesshttp://127.0.0.1:8000/. You can seeCustom Portpyfilerver 9000So you will need accesshttp://127.0.0.1:9000/, All just likehttp.server.
Package: pyFileSizeUtils
File Size UtilsA library provide function converting file size or memory size between different unit byte, kilo byte, mega byte...Installationpip install pyFileSizeUtilsDemoimportpyFileSizeUtilsfrompyFileSizeUtilsimportBinarySize,SizeUnitoneMB=BinarySize.ofMBFromInt(1).inByte()print(oneKB.inByte())# 1024
Package: py-filestore
Py FilestoreThis is a simple package meant to create a static data structure similar to a dictionary that exists as a group of files.If you have used any previous versions prior to 1.1.0, you should update as the last few updates changed how items were saved in the index and how things got hashed.Example usageFirst, download it using pip:pip install py-filestoreThen:fromfilestoreimportFilestoreimportrequests# You can pass your preferred encoding in:# store = Filestore(encoding='ascii') # It defaults to utf-8# You can also force overwriting on population with# store = Filestore(overwrite=True)store=Filestore()# You can treat this just like a python dictionary!# You can populate it in two ways:store['a']=(1,2,3)store.append(('b',"The alphabet is pretty cool"))store[1]=[13.23,321.0]# You can store any data that is supported by python's own# pickle package.store['res']=requests.get("https://api.github.com/")# And if you have data that is not supported, you can write# and set your own serializer and deserializer for it.print(store)# {'a': '(1, 2, 3)', 'b': 'The alphabet is pretty cool', 'res': '<Response [200]>', 1: [13.23, 321.0]}# You can get items out too!alpha=store['a']print(alpha)# (1, 2, 3)print(alpha[1])# 2# The dictionary is saved to file under the directory ./.store# which means you can close the session and return for it later# as long as the working directory is the same when the class is initialized.# However, this leaves residue on the file system. We can clean that up too!store.clean_up()# All the saved data is gone now.How it works:Creating an instance of the class will create a directory on the system that will hold all the given information. An index file is created to allow repopulation over different sessions.When data is added to thefilestore, the class hashes the key with a naive, non-cryptographic hashing algorithm calledFNV-1ain 32 bits. This hash becomes the name of the file. Collisions are now handled in the case that they occur!The actual data gets serialized with python'spickleand then encoded into base64 before being written to the disk. If your data is not compatible withpickle, you can write and assign your own serializer/deserializer usingstore.set_serializer(my_serializer_function)andstore.set_deserializer(my_deserializer_function)prior to inserting or removing data.TestsCurrently, the testing.py file is not comprehensive and tests random strings of a specific length for collisions. It could use some work, but it does prove thatFNV-1ahas collisions if you look hard enough.
Package: pyfilesysobjects
The ‘filesysobjects’ package provides cross-platform-utilities for path addresses
of file like resources. This includes the search and navigation features on file
system structures with the application of regular expressions for pathnames
intermixed with globs.filesysobjects - constantsfilesysobjects.apppaths - application resource path processingfilesysobjects.paths - file systems path processingfilesysobjects.pathtools - search, enumeration, and iteration operationsfilesysobjects.userdata - user directoriesfilesysobjects.osdata - OS directoriesfilesysobjects.configdata - config directoriesSupported platforms are:Linux, BSD, Unix, Mac-OS/OS-X, and WindowsPython2.7, Python3.5+Online documentation:https://pyfilesysobjects.sourceforge.io/Runtime-Repository:PyPI:https://pypi.org/project/pyfilesysobjects/Install:pip install pyfilesysobjects, see also ‘Install’.Downloads:sourceforge.net:https://sourceforge.net/projects/pyfilesysobjects/files/bitbucket.org:https://bitbucket.org/acue/pyfilesysobjectsgithub.com:https://github.com/ArnoCan/pyfilesysobjects/pypi.org:https://pypi.org/project/pyfilesysobjects/Project DataPROJECT: ‘filesysobjects’MISSION: Standard conform utilities for paths of file systems and URIs.VERSION: 00.01RELEASE: 00.01.033STATUS: alphaAUTHOR: Arno-Can UestuensoezCOPYRIGHT: Copyright (C) 2010,2011,2015-2018 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can UestuensoezLICENSE: Artistic-License-2.0 + Forced-Fairplay-ConstraintsPython support:Python2.7, and Python3.5+OS-Support:Linux: Fedora, CentOS, Debian, and RaspbianBSD - OpenBSD, and FreeBSDOS-X: Snow LeopardWindows: Win7, Win10CygwinUNIX: SolarisCurrent ReleaseMajor Changes:Changed interface to notation.Python2.6 support dropped.Python3.5+ support introduced.Added advanced file and path search byglobandre-findpattern().Added rfc3986 - level-1 with basicnormapppathx()andsplitapppathx().Conformity tests for rfc1738, rfc3986, rfc8089, UNC, MS-SMB/MS-CIFS, IEEE/1003.1, see references section of doc.ToDo:Introduction of dynamic pluginsSupport for name spaces of WindowsKnown Issues:Quoting/masking in http paths currently does not work, %-codes has to be used. Queries and fragments are OK.Some minor non-compliance for rare esoteric cases.Old style MacOS path names and special handling of ‘:’ by HPF/cli/finder are not supported.OpenVMS path names are not supported.
Package: py-filesystem
py-filesystempy-filesystem is a Python module that provides information about files and folders.UsageTo obtain information from a folder>>>importos>>>fromfilesystemimportFolder>>>folder=Folder(os.getcwd())>>>folder.what'folder'>>>folder.atime1657473718.8713582>>>folder.atime_humanized()'10 Jul 2022 19:21:58'>>>folder.size133914>>>folder.size_humanized()'130.8KiB'>>>folder.is_emptyFalse>>>folder.listdir['.git','.gitignore','README.md','build','dist','filesystem','py_filesystem.egg-info','requirements.txt','setup.py','test']To obtain information from a file>>>fromfilesystemimportFile>>>file=File('README.md')>>>file.mime'inode/x-empty'>>>file.size0>>>file.is_readable()True>>>file.is_writable()True>>>file.md5'd41d8cd98f00b204e9800998ecf8427e'>>>file.extension'.md'>>>file.name'README'Installationpip install py-filesystemOther sources:Pypi:https://pypi.org/project/py-filesystem/Github:https://github.com/FredTourn/py-filesystemRequirementspython-magiclibmagicMacOsmacappstore: installation libmagic
Package: py-file-type
Py File TypeA wrapper forpython-magicthat includes python-magic-bin files.DescriptionThis was made duo to a file conflict problem happening when trying to
installpython-magicandpython-magic-bin.Installingpipinstallpy-file-typeUsageWorks exactly likepython-magicimportpy_file_typeasmagicfile_type=magic.from_file('video.mp4',mime=True)print(file_type)# -> video/mp4AuthorsRiadh Azzoun -@riad-azzLicenseThis project is licensed under the [MIT] License - see the LICENSE.md file for details
Package: pyfilewatch
# filewatch## Getting Started* python setup.py installer* globtail -x '*.gz' '/var/log/*'For developers, see filewatch.watch.Watch and filewatch.tail.Tail.Tested on Linux/x86_64 and Mac OS/X.All operating systems should be supported. If you run the tests onanother platform, please open a Github issue with the output (evenif it passes, so we can update this document).## OverviewThis project provide file and glob watching.It is a re-implementation in python of the excellentruby-filewatch package(https://github.com/jordansissel/ruby-filewatch)Goals:* to provide a python api to get notifications of file or glob changesExample code (standalone):from filewatch.tail import Taildef func(path, line):print "%s: %s" % (path, line)t = Tail()t.tail("/tmp/test*.log")t.subscribe(func)