Saravanan666/pypi-org huggingface dataset:
Package: zipind
zipindzipind - From a folder, make a splitted ZIP with INDependent partsFree software: MIT licenseDocumentation:https://zipind.readthedocs.io.FeaturesCompact folder to .zip or .rar, dividing it into independent parts, grouping your files in alphanumeric order.Preserve the ordering of folders and files.Preserve the internal structure of folders.If any file exceeds the defined maximum size, the specific file is splitted in dependent mode.Set the file types to be ignored in compression (config/ignore_extensions.txt)Verify that the file path length is less than the specified limit (default 250 characters).Sanitize the folder and file names characters to ensure compatibility with UTF-8 encoding, by auto-renaming.RequirementsTo compress to Zip format, It is necessary to have7Zipapp installed and added in system variablesTo compress to Rar format, It is necessary to haveWinrarapp installed and added in system variablesUsageLet’s zip a folder, with a maximum of 100MB per file, in zip mode and ignoring ‘ISO’ extension files.Through python script importationimportzipindpath_folder=r'c://my_project'zipind.run(path_folder,mode='zip',mb_perfile=100,mode='zip',ignore_extensions=['iso'])Through terminal in chatbot-like style$ zipindZipind will start by responding:Zipind - From a folder, make a splitted ZIP with INDependent parts
>> github.com/apenasrr/zipind <<

Paste the folder path to be compressed:Now paste the folder path to be compressed:Paste the folder path to be compressed: c://my_projectAnswer the questions to customize the parameters and your project will be processed.CLI ModeSoon…We recommendmises.org- Educate yourself about economic and political freedomlbry.tv- Store files and videos on blockchain ensuring free speechA Cypherpunk’s Manifesto- How encryption is essential to Free Speech and PrivacyCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.HistoryTired of dealing with dependent-mode slicing folders and not finding
applications to be able to slice folders in independent pieces, the 2020
tyrannical lock-down time was used to create the first version of this tool.0.1.0 (2020-04)Birth of the first beta version1.1.0 (2022-09-04)First release on PyPI.
Package: zipint
Efficient compression and decompression of unsigned integer arrays using binary representation.pip install zipintEfficientcompressionanddecompressionofunsignedintegerarraysusingbinaryrepresentation.Thismoduleprovidesfunctionsforcompressinganddecompressingintegerarraysefficientlyusingbinaryrepresentation.Itisdesignedtoworkwith2Dnumpyarraysandsupportscompressionanddecompressionofunsignedintegersinawaythatminimizesstoragespace.Usage:fromzipintimportzipint,unzipintimportnumpyasnpimportpandasaspddf=pd.DataFrame(np.random.randint(2,1000,(5,5)))print(df.to_string())f1=zipint(df)print(f'{f1=}')f2=unzipint(f1)print(f'{f2=}')df2=pd.DataFrame(f2)print(df2.to_string())#      0    1    2    3    4# 0  393  489  469    4  777# 1  436  322  491  753  143# 2  257  275  920  303  176# 3  654  981  337  395  211# 4  444  337  972  251  749# f1=array([432633621254921, 479733330199695, 282870732340400, 720134299069651,#        488546033200877], dtype=uint64)# f2=array([[393, 489, 469,   4, 777],#        [436, 322, 491, 753, 143],#        [257, 275, 920, 303, 176],#        [654, 981, 337, 395, 211],#        [444, 337, 972, 251, 749]], dtype=uint64)#      0    1    2    3    4# 0  393  489  469    4  777# 1  436  322  491  753  143# 2  257  275  920  303  176# 3  654  981  337  395  211# 4  444  337  972  251  749Note:Themoduleusesbinaryrepresentationtoefficientlystoreandretrieveunsignedintegervalues.Thecompresseddataisstoredasuint64foroptimization.Ifoverflowoccursduringconversion,thedataisstoredasanobjecttypearray.
Package: zipit
zipitVery thin wrapper around zipapp that let's you package a python module and dependencies.ExampleWe'll use our demo "app" to showcase zipit.First, let's take a look at what our app contains:$ cd demo
$ ls app
__main__.py  requirements.txtOur "app" contains two files:__main__.py: This is the entrypoint to our app.requirements.txt: This is a classic requirements file as consumed by pip.Getting things set upFirst we need to install the dependencies for our app. zipit doesn't much care how dependencies are installed. We just need to keep track of where they're installed.Let's use pip:mkdir deps
$ python3 -m pip install -r app/requirements.txt --target depszipitOnce the dependencies are installed, we can let zipit do it's work:cd ..
$ python3 -m zipit demo/app -d demo/depsThis will produce.pyzfile runable with python.$ python3 app.pyz
Hello, World!
Package: zipjson
zipjson - a simple tool to create and read compressed JSON filesInstallationpipinstallgit+https://github.com/vguzov/zipjson.gitUsage:The following code creates a .zip archive withdata.jsonfile inside it, containing the serialized data, then reads itimportzipjsonany_jsonable_data={"something":42}file_object=open("test.json.zip","wb")# Mind the additional 'b' flagzipjson.dump(any_jsonable_data,file_object)loaded_data=zipjson.load(open("test.json.zip","rb"))print(loaded_data)# {'something': 42}In-memory methodsdumpsandloadsare supported as well
Package: zipkin
python-zipkinis an api for recording and sending
messages toZipkin. Why use it?
From thehttp://twitter.github.io/zipkin/:“Collecting traces helps developers gain deeper knowledge about how
certain requests perform in a distributed system. Let’s say we’re having
problems with user requests timing out. We can look up traced requests
that timed out and display it in the web UI. We’ll be able to quickly
find the service responsible for adding the unexpected response time. If
the service has been annotated adequately we can also find out where in
that service the issue is happening.”Supported versionsPython:2.6,2.7(the current Python Thrift release doesn’t
support Python 3)Recording annotationspython-zipkincreates a single span per served requests. It
automatically adds a number of annotations (see below). You can also add
your own annotations from anywhere in your code:fromzipkin.apiimportapiaszipkin_apizipkin_api.record_event('MySQL: "SELECT * FROM auth_users"',duration=15000)# Note duration is in microseconds, as defined by Zipkinzipkin_api.record_key_value('Cache misses',15)# You can use string, int, long and bool valuesHackingSeeCONTRIBUTING.mdfor guidelines.You can start hacking onpython-zipkinwith:gitclonehttps://github.com/prezi/python-zipkin.gitcdpython-zipkingitremoterenameoriginupstreamvirtualenvvirtualenv.virtualenv/bin/activatepythonsetup.pytest
Package: zipline-ai-dev
Zipline Python APIOverviewZipline Python API for materializing configs to be run by the Zipline Engine.Set up for publishing.Create your~/.pypircfile with your credentials for pypi repository.[distutils]
index-servers =
  pypi
  pypitest
  local

[pypi]
username: nalgeon  # replace with your PyPI username

[pypitest]
repository: https://test.pypi.org/legacy/
username: nalgeon  # replace with your TestPyPI username

[local]
repository: <local artifactory repository>Generate the required thrift modules, update the version and run the respective command to publish to the desired
repository:python setup.py sdist upload -r { pypi | pypitest | local }
Package: zipline-bitmex
BitMEX bundle forZipline[WARNING]There is a bug in this repo. It can ingest the data from the BitMEX API to the Zipline folder, but somehow I can’t run an algorithm upon it. Any PRs or advice would be appreciated!UsageInstall this package with pip:pip install zipline-bitmex. You may want to run this command with--userparameter.Register this package to Zipline by writing following content to$HOME/.zipline/extension.py:fromzipline.data.bundlesimportregisterfromzipline_bitmeximportbitmex_bundleimportpandasaspdstart=pd.Timestamp('2019-01-01',tz='utc')end=pd.Timestamp('2019-01-07',tz='utc')register('bitmex',bitmex_bundle(['XBTUSD']),calendar_name='bitmex',start_session=start,end_session=end,minutes_per_day=24*60,)Ingest the data bundle with:zipline ingest -b bitmex
Package: zipline-cli
Zipline CLIPython 3 CLI Uploader for Zipline.
Zipline CLI is currently functional andUnder Active Development.Please open aFeature Requestfor new features and submit anIssuefor any bugs you find.Zipline Docs:https://zipline.diced.tech/Table of ContentsQuick StartInstallCLI UsageEnvironment VariablesPython API ReferenceAdditional InformationQuick Startpython3-mpipinstallzipline-cli
zipline--setupInstallFrom PyPi using pip:python3-mpipinstallzipline-cliFrom GitHub using pip:python3-mpipinstallgit+https://github.com/cssnr/zipline-cli.gitFrom Source using pip:gitclonehttps://github.com/cssnr/zipline-cli.git
python3-mpipinstall-ezipline-cliFrom Source using setuptools:gitclonehttps://github.com/cssnr/zipline-cli.gitcdzipline-cli
python3setup.pyinstallUninstallTo completely remove from any above install methods:python3-mpipuninstallzipline-cliCLI UsageSetup Zipline URL and Token:zipline--setupUpload a File:ziplinetest.txtUpload Multiple Files:ziplinefile1.txtfile2.txtCreate Text File from Inputcattest.txt|ziplineCreate Text File from Clipboardzipline# Paste or Type contents, followed by a newline, then Ctrl+D (Ctrl+Z on Windows)Environment VariablesEnvironment Variables are stored in the.ziplinefile in your home directory.Location:~/.ziplineor$HOME/.ziplineVariableDescriptionZIPLINE_URLURL to your Zipline InstanceZIPLINE_TOKENAuthorization Token from ZiplineZIPLINE_EMBEDSet this enable Embed on your uploadsZIPLINE_FORMATOutput Format after upload. Variables:{filename},{url}and{raw_url}ZIPLINE_EXPIRESee:https://zipline.diced.tech/docs/guides/upload-options#image-expirationSee.zipline.examplefor an example.ziplinefile.You may override them by exporting the variables in your current environment
or using the corresponding command line arguments. See-hfor more info.Python API ReferenceInitialize the class with your Zipline URL.
Everything else is a header passed as a kwarg.
The API does not yet support environment variables.Zipline Token/Authorization is a header kwarg and can be passed as follows:fromziplineimportZiplinezipline=Zipline('ZIPLINE_URL',authorization='ZIPLINE_TOKEN')Upload a FilefromziplineimportZiplinezipline=Zipline('ZIPLINE_URL',authorization='ZIPLINE_TOKEN')withopen('text.txt')asf:url=zipline.send_file('test.txt',f)print(url)Additional InformationStill have questions, concerns, or comments?Feature RequestsHelpdesk Q&ADiscordZipline Guide: Hit That Fresh Nar Nar:youtube.com/watch?v=bJHYo2aGWgE
Package: zipline-django-pyodbc-azure
zipline-django-pyodbc-azure.. image::http://img.shields.io/pypi/v/django-pyodbc-azure.svg?style=flat:target:https://pypi.python.org/pypi/django-pyodbc-azure.. image::http://img.shields.io/pypi/l/django-pyodbc-azure.svg?style=flat:target:http://opensource.org/licenses/BSD-3-Clausezipline-django-pyodbc-azureis a modern fork ofdjango-pyodbc-azure <https://github.com/michiya/django-pyodbc-azure>
Package: zipline-poloniex
Poloniex data bundle forzipline, the pythonic algorithmic trading library.DescriptionJust install the data bundle with pip:pip install zipline-poloniexand create a file$HOME/.zipline/extension.pycalling zipline’sregisterfunction.
Thecreate_bundlefunction returns the necessary ingest function forregister.
Use thePairsrecord for common US-Dollar to crypto-currency pairs.ExampleAdd following content to$HOME/.zipline/extension.py:importpandasaspdfromzipline_polonieximportcreate_bundle,Pairs,register# adjust the following lines to your needsstart_session=pd.Timestamp('2016-01-01',tz='utc')end_session=pd.Timestamp('2016-12-31',tz='utc')assets=[Pairs.usdt_eth]register('poloniex',create_bundle(assets,start_session,end_session,),calendar_name='POLONIEX',minutes_per_day=24*60,start_session=start_session,end_session=end_session)Ingest the data with:zipline ingest -b poloniexCreate your trading algorithm, e.g.my_algorithm.pywith:importloggingfromzipline.apiimportorder,record,symbolfromzipline_poloniex.utilsimportsetup_logging__author__="Florian Wilhelm"__copyright__="Florian Wilhelm"__license__="new-bsd"# setup logging and allsetup_logging(logging.INFO)_logger=logging.getLogger(__name__)_logger.info("Dummy agent loaded")definitialize(context):_logger.info("Initializing agent...")# There seems no "nice" way to set the emission rate to minutecontext.sim_params._emission_rate='minute'defhandle_data(context,data):_logger.debug("Handling data...")order(symbol('ETH'),10)record(ETH=data.current(symbol('ETH'),'price'))Run your algorithm inmy_algorithm.pywith:zipline run -f ./my_algorithm.py -s 2016-01-01 -e 2016-12-31 -o results.pickle --data-frequency minute -b poloniexAnalyze the performance by readingresults.picklewith the help of Pandas.NoteThis project has been set up using PyScaffold 2.5.7. For details and usage
information on PyScaffold seehttp://pyscaffold.readthedocs.org/.
Package: zipmigo
ZipmigoZipmigo is intended to assist fledgling data analysts and scientists with the process of downloading a zip file via http and unzipping it into the working directory when working in a notebook environment, saving them time and energy wading throughos,requests, and running shell commands to inspect the directory structure.StoryThis package was born of the author's hatred for recursive folders within zip files, as well as her need to use the same commands over and over again to download & unpack zip archives. Over the course of a project, she found herself constantly reusing code snippets - a sign that one should wrap it up into a script. However, she was working in google colab, which was designed for collaborative notebook workflows. It seemed that distributing a package on PyPi was the easiest way to import a script into colab for her audience, and thus zipmigo was born.InstallationZipmigo is available for commandline installation from PyPi viapip install zipmigo.Google ColabRun!pip install zipmigoFrom Sourcegit clone https://github.com/kaszklar/zipmigo.gitto your directory of choice.cd zipmigoand install withpython setup.py install.ExamplesImportingimport zipmigoDownload a zip fileDownload a file to the current working directory. The status of the connection and the progress of the download will be printed out.zipmigo.download("https://geo.nyu.edu/download/file/harvard-ntadcd106-shapefile.zip",'congressdistricts.zip')Print out the contents of the current working directory & subdirectorieszipmigo.list_dir()UnzipUnpack zip file into current directory. If the archive has only directories in the root, those directories will be placed in the current working directory.zipmigo.unzip("congressdistricts.zip")Release History[1.1.0] 2020.08.12Refactor for namespaceAdjust download control flow[1.0.1] 2020.05.05Some error handling and type assertionsCorrect readme instructions[1.0.0] 2020.02.13Initial Release 🎉Future features?Inspect zip archive prior to openingExtract a single file from the archive
Package: zipminator
ZipminatorZipminator is a lightweight python package with two main functionalities; Zipndel or Unzipndel, for zipping or unzipping a password-protected pandas DataFrame file, and then deleting the original file.Example usagepip  install zipminatorzipitfromzipminator.zipitimportZipndelimportpandasaspdimportgetpassimportzipfileimportoscreate instance of Zipndel and call zipit methodzipndel=Zipndel(file_name='df',file_format='csv')df=pd.DataFrame({'A':[1,2,3],'B':[4,5,6],'C':[7,8,9]})zipndel.zipit(df)unzipitfromzipminator.unzipitimportUnzipndelcreate instance of Unzipndel and call unzipit methodunzipndel=Unzipndel(file_name='df',file_format='csv')df=unzipndel.unzipit()df
Package: zip_open
zip_openopen file from nested zip file archive.If you use static file like as ‘data.zip’ and open this from your
python code, Your program will become likeopen(os.path.join(os.path.dirname(__file__),'data.zip')).
But if your packages are packed into packages.zip file (zipped-egg,
or cases to gather in one file on Google App Engine matter), your
code doesn’t work fine.In this situation, the file path of data.zip becomes/path/to/packages.zip/data.zip, then your program can’t open the
data.zip file.zip_openpackage solves this problem.FeaturesOpen file from nested zip archive file path/name.Open file from nested zip archive file-like-object.Using sample1: open the file from zip filepackages1.zip is:packages1.zip
  + file1.txtOpen file1.txt:>>> from zip_open import zopen
>>> fobj = zopen('packages1.zip/file1.txt')
>>> data = fobj.read()
>>> print(data)
I am file1.txt, ok.You can specifiy zopen subpath args:>>> fobj = zopen('packages1.zip', 'file1.txt')
>>> print(fobj.read())
I am file1.txt, ok.These code samples equivalent to below code:>>> from zipfile import ZipFile
>>> zipobj = ZipFile('packages1.zip')
>>> data = zipobj.read('file1.txt')
>>> print(data)
I am file1.txt, ok.Using sample2: open the file from nested zip filepackages2.zip is:packages2.zip
  + data2.zip
     + file2.txtOpen file2.txt:>>> from zip_open import zopen
>>> fobj = zopen('packages2.zip/data2.zip/file2.txt')
>>> print(fobj.read())
I am file2.txt, ok.If you want to open from file-like-object, you can call:>>> zip_fileobj = open('packages2.zip', 'rb')
>>> fobj = zopen(zip_fileobj, 'data2.zip/file2.txt')
>>> print(fobj.read())
I am file2.txt, ok.then you also call:>>> from StringIO import StringIO
>>> zip_payload = open('packages2.zip', 'rb').read()
>>> zip_fileobj = StringIO(zip_payload)
>>> fobj = zopen(zip_fileobj, 'data2.zip/file2.txt')
>>> print(fobj.read())
I am file2.txt, ok.Using sample3: open the file included in package oneselfpackages3.zip is:packages3.zip
  + foo.py
  + file1.txt
  + data3.zip
     + file3.txtfoo.py:import os
from zip_open import zopen

def loader(filename):
    fobj = zopen(os.path.join(os.path.dirname(__file__), filename))
    return fobjexecute loader() from interactive shell:>>> import sys
>>> sys.path.insert(0, 'packages3.zip')
>>> import foo
>>> fobj = foo.loader('file1.txt')
>>> print(fobj.read())
I am file1.txt, ok.
>>> fobj = foo.loader('data3.zip/file3.txt')
>>> print(fobj.read())
I am file3.txt, ok.Requirements and dependenciesRequirement: Python 2.4 or laterDependency: Nothing.ToDoAdd tar.gz file support.Add using sample document for egg archive.Support Python3Add module import feature.History0.2.1 (Unreleased)fixed: test broken (open file as binary)use distutils.core.setup if no setuptools.0.2.0 (2011-11-29)Change license from PSL to Apache License 2.0Add feature: open from file-like-object.0.1.0 (2010-7-19)first release
Package: zipp
A pathlib-compatible Zipfile object wrapper. Official backport of the standard libraryPath object.CompatibilityNew features are introduced in this third-party library and later merged
into CPython. The following table indicates which versions of this library
were contributed to different versions in the standard library:zippstdlib3.153.123.53.113.23.103.3 ??3.91.03.8UsageUsezipp.Pathin place ofzipfile.Pathon any Python.For EnterpriseAvailable as part of the Tidelift Subscription.This project and the maintainers of thousands of other packages are working with Tidelift to deliver one enterprise subscription that covers all of the open source you use.Learn more.
Package: zipper
Zipper [![Build Status](https://travis-ci.org/trivio/zipper.png)](https://travis-ci.org/trivio/zipper)======A datastructure, first described by Huet, is used to traverse andmanipulate immutable trees. This library is a port of the zipperimplementation found in Clojure.Usage-----The zipper module provides several functions for creating a Loc object whichrepresents the current focal point in the tree.```>>> import zipper>>> top = zipper.list([1, [2, 3], 4])>>> print top.down().right().node()[2,3]>>> print top.down().right().down().node()2>>> print top.down().right().down().replace(0).root()[1, [0, 3], 4]```
Package: zippity-py
Zippitydum lil CLI to collect TODOs for ChatGPTInstallationpipxinstallzippity_pyUsageAfter installation, you can use the CLI by running:>zpt--help

Usage:zpt[OPTIONS][SOURCE_DIRECTORY]Options:-e,--extensionsTEXT(Default:'.py,.js,.ts')-r,--result_filePATH(Default:'ZIPPITYDO_EXAMPLE.md')-t,--template_filePATH--helpTemplateTemplates are jinja markdown files, that get passed an list of these:FileTodos=TypedDict("FileTodos",{"todos":List[Todo],"content":str,"language":str,"mimetype":str,"name":str,},)EachFileTodowill have a list of todos, like this:Todo=TypedDict("Todo",{"line_number":int,"text":str,},)The default template is intemplate/template.md; once compiled it looks like this:ContributingContributions are welcome. Please make sure to update tests as appropriate.LicenseMIT
Package: zippyshare-downloader
zippyshare-downloaderDownload file from zippyshare directly from pythonTable of ContentsKey FeaturesMinimum Python VersionInstallationPython Packages Index (PyPI)From the sourceSimple UsageCommand Line Interface (CLI)Embedding (API)LinksFAQKey FeaturesInzippyshare-downloaderyou can:download file from Zippyshare (Yes of course).Extract filename, date uploaded, file size, and downloadable url information from given url.Fast Download, allows you to download in 2 connections at same time simultaneously.Minimum Python version3.5.xInstallationPython Packages Index (PyPI)pipinstallzippyshare-downloaderFrom the sourceClone the repositorygit clone https://github.com/mansuf/zippyshare-downloader.git
cd zippyshare-downloaderAnd then runsetup.pypython setup.py installNOTE:If you think zippyshare-downloader are already downloaded with latest version, but the app doesn't seems work properly (like this case#11).
You can reinstall zippyshare-downloader by following this command:# For Windowspy-3-mpipcachepurgezippyshare_downloader
py-3-mpipuninstallzippyshare-downloader
py-3-mpipinstall-Uzippyshare-downloader# For Linux / Mac OSpython3-mpipcachepurgezippyshare_downloader
python3-mpipuninstallzippyshare-downloader
python3-mpipinstall-Uzippyshare-downloaderIf still doesn't work properly that means Zippyshare change their code, you can open issuehereSimple UsageCommand Line Interface (CLI)Readherefor more informationszippyshare-dl"insert zippyshare url here"# orzippyshare-downloader"insert zippyshare url here"# Use this if `zippyshare-dl` and `zippyshare-downloader` didn't workpython-mzippyshare_downloader"insert zippyshare url here"Embedding (API)Usezippyshare-downloaderin your python scriptReadherefor more informationsfromzippyshare_downloaderimportextract_info,extract_info_coro# by default, parameter download is Truefile=extract_info('insert zippyshare url here',download=True)print(file)# Output: <Zippyshare File name="..." size="..."># async versionasyncdefget_info():file=awaitextract_info_coro('insert zippyshare url here',download=True)print(file)LinksDocumentationPyPIFAQQ:I always gettingNameError: The use of "bla bla" is not allowed, what should i do ?A:Zippyshare always change their code, Please update to last version, if your zippyshare-downloader is latest version, then open a issuehere
Package: zippyshare-generator
Generator LinksInstallingInstall and update usingpip:$ pip install zippysharezippyshare supports Python 2 and newer.ExampleWhat does it look like? Here is an example of a simple generate link:$ zippyshare.py -d /root/Downloads"https://www110.zippyshare.com/v/0CtTucxG/file.html"-n"myMovies.mp4"And it will download automaticaly with “Internet Download Manager (IDM) for Windows or build in download managerYou can use on python interpreter>>>fromzippyshareimportzippyshare>>>generator=zippyshare()>>>url_download=generator.generate("https://www110.zippyshare.com/v/0CtTucxG/file.html")>>>generator.download(url_download,".","myMovies.mp4",False)>>>#it will download it automaticallyFor more options use ‘-h’ or ‘–help’$zippyshare.py--helpor$zippyshare--helpSupportDownload With ‘wget’ (linux/windows) or ‘Internet Download Manager (IDM) (Windows) (pip install idm)’Python 2.7 + (only)Windows, LinuxLinksLicense:BSDCode:https://bitbucket.org/licface/zippyshareIssue tracker:https://bitbucket.org/licface/zippyshare/issues