Saravanan666/pypi-org huggingface dataset:
Package: sizebytes-tools
sizebytes_tools: Convert Bytessizebytes_tools is a Python library convert bytes.InstallationThe code is packaged for PyPI, so that the installation consists in running:pipinstallsizebytes-toolsUsagefrom sizebyes_tools import convert_bytes

sizebytes = 155457451
size_text = convert_bytes(sizebytes)
print(size_text)Terminal properties============ ======= 
sizebytes    accept    
------------ ------- 
B             yes     
KB            yes     
MB            yes     
GB            yes     
TB            yes 
PB            yes 
EB            yes   
ZB            yes      
YB            yes      
============ =======LicenseApache License 2.0.New features v1.0BugFixchoco install visualcpp-build-toolsReferenceJonathan Quizagithub.Jonathan QuizaRumiMLSpark.Jonathan Quizalinkedin.
Package: sizecalculator
Size CalculatorSize Calculator is a Python package that calculates the size of a file or folder and prints it in bytes, kilobytes, and megabytes.InstallationYou can install the package using pip:pipinstallsizecalculatorUsageOnce installed, you can use thesizecalculatorcommand from the command line:sizecalculator/path/to/your/file_or_folderReplace/path/to/your/file_or_folderwith the actual path of the file or folder you want to analyze.Usingprint_sizein Your Python ScriptYou can also use theprint_sizefunction in your Python scripts or projects. Here's an example:fromsizecalculatorimportprint_sizefile_or_folder_path="/path/to/your/file_or_folder"print_size(file_or_folder_path)Replace/path/to/your/file_or_folderwith the actual path of the file or folder you want to analyze.Examplesizecalculator/path/to/your/file_or_folderThis will print the size of the specified file or folder in bytes, kilobytes, and megabytes.The size information will be displayed in human-readable format, including bytes, kilobytes, and megabytes.
Package: sized
sizedSized Generators with DecoratorsWhy?TheSizedGeneratortype provides a simple and robust way to keep track of iterations and max sizes for
generators and iterators.An issue with using normal Generators with long-running / multithread processes has been reporting
progress.Here is an example of a standardGeneratorbeing wrapped withtqdm:fromtqdmimporttqdmdefgen():n=2for_inrange(100):n+=(5*1/n)yieldnforxintqdm(gen()):pass# Output has no progress bar:>100it[00:00,1.00it/s]A solution would be to keep track of the total progress, but this gets messy if an iteration is
interrupted by user actions and the progress bar needs to continue.Now with thesizeddecorator:fromsizedimportsized@sized(100)defs_gen():n=2for_inrange(100):n+=(5*1/n)yieldnforxintqdm(s_gen()):pass# Now with a progress bar!>100%|██████████|100/100[00:00<00:00,1.00it/s]SizedGeneratorwill also track iterations called and reflect remaining lengthgen_instance=s_gen()len(gen_instance)->100next(gen_instance)next(gen_instance)len(gen_instance)->98Getting startedThere are 2 main ways to create aSizedGenerator1.@sizeddecoratorfromsizedimportsized@sized(5)defgen():yield...2.SizedGeneratorconstructorfromsizedimportSizedGeneratorgen=SizedGenerator((x**2forxinrange(10)),10)Additional InfoThesizeargument can be either anint,Sizedobject, or a callable accepting a dictionary of
arguments and keyword-arguments, returning anintorSizedobject.@sized(15)# intdefgen():foriinrange(15):yieldi**2ls=[1,4,5]@sized(ls)# `Sized` objects will have len(obj) called automaticallydefgen():foriinls:yieldi**2@sized(lambdax:x['some_arg'])# Callable using keyword argument, returning `Sized`defgen(arg=None):foriinarg:yieldi**2@sized(lambdax:2*len(x['1']))# Callable using positional argument, returning `int`defgen(arg_0,arg_1):for_inrange(2):foriinarg_1:yieldi**2+arg_0LicenseThe code in this project is released under theMIT License.
Package: sized-cacher
# Sized CacherCache results of function call with expire and maxsize.`pip3 install -U sized-cacher`## Usage```pythondisk_cache = DiskCache("./caches", maxsize=3)@disk_cache.cachingdef fn(a):return afor i in range(10):print(fn(i))```## API* `self.save(value, *args, **kwargs)`* `new_func = self.caching(func)`
Package: sized-ints
Sized IntsSized Ints brings fixed width integers to python! Whether bit packing, bit manipulating, or preparing code to interface with MMIO, Sized Ints makes swizzling and unswizzling bits a breeze.Note:This project is under development, there may be:minorapi changes, while this is not expected, it is possiblechanges in the underlying implementationExamplefromsized_intsimport*# you can make sized numbers that have limited value rangesa=u8(127)# they can be used as normal with plain ints or other ints of the same or smaller sizeb=a+u8(5)b-=5# you can always cast back to plain intsplain=int(b)What sizes are there?Any sizes cpython can represent.# for convenience you can import all the baked-in ints from the sized_ints modulefromsized_intsimport*print(dir())# if you need additional/specific sizes you can import them from `sized`fromsizedimportu20,u1132,i27# however if you do not know what sizes you'll need ahead of time, that's fine.#   you can choose int sizes at 'runtime' using the `Signed` and `Unsigned` typesfromsized_intsimport*fromtypingimport*defnew_user_sized_int()->Type[Unsigned]:width=int(input('width of new sized int: '))# for some reason?ux=Unsigned[width]# get the  new Unsigned size typereturnuxBaked in sizes:u0, u1, u2, u4, u8, u16, u32, u64, u128, u256, u512, u1024i1, i2, i4, i8, i16, i32, i64, i128, i256, i512, i1024OverflowBy default overflow errors are off for all Sized Ints# by default overflow is silent and numbers will rolloverd=sized.u8(232)+sized.u8(127)# u8(103), no errorHowever, you can manually enable or disable overflow on a scope by scope basis.withoverflow(True):try:d=sized.u8(232)+sized.u8(127)# will raise exceptionexceptOverflowError:print("error raised, yay?")These contexts will only affect your current scope so functions you call aren't affected.defsome_func():# needs no overflow errors (we can rely on the default)assertoverflow.ison()isFalseassertu8(232)+u8(127)==u8(103)withoverflow(True):try:x=u8(255)+3except:print('\toverflow caught')assertoverflow.ison()isTruesome_func()assertoverflow.ison()isTrueTips and Tricks:# unsigned ints can be packed and unpacked by widths...# documentation needed# overflow contexts can also be used inline for single statementsx=u3(1)withoverflow(True):x+=200# raises exceptionIssues and Features:Bugs: If you find a bug/issue, please file an issue on Github with an example and explanation.Features: If you have a proposed feature, please either fork thepython-sized-ints repoand make a pull request with the code, or without code make an issue to discuss the possible feature.Todos:help welcomeextend the documentation to cover.twos(),.as_signed/as_unsigned(),Unsigned.pack(),Unsigned.unpack(),tri,utri, etcwrite more tests (:sweat_smile:)switch from auto generated dunder/magic methods to hand rolled methods in_SizedIntwrite ahex()function to express the size of the int (likebin())and a non sizeduinttype that is always >= 0
Package: sizer
SizerA simple Python script for iterating recursively over a directory and returning all of the files sorted by sizeDependenciesYou need Python 3.8+ and to run the following command:pip install -r requirements.txtUsageYou can use the script as an executable by running:python -m sizerYou can also install it withpipx.For more information on the usege of the script, simply run it with -h.Alternatively, you can access this as a library by importing from sizer:import sizer
Package: sizhi
此模块用来获取地图省市县乡镇四级行政区划的四至点位，默认左上右下，经度在前，纬度在后，请按该顺序编写代码。
利用该模块，可以省去爬虫等工作时需要手动获取四至点位并转换坐标系的过程，便于节省代码，批量使用，还可使得代码更为可控。有获取行政区划的四至点位（包含全部区划的最小矩形即包络矩形）与自行输入俩种方式。
Package: sizif
DL backup/restore nano frameworkAuto backup/restore model snapshots of deep learning models:to/from local filesystemto/from remote FTP serverCurrent version supports only Keras >= 2.2 models. You're welcome to contribute.Usagepip3 install sizifFTP Keras checkpoints backup/restore:fromsizif.kerasimportKerasModelWrapperfromsizif.storageimportFTPFileCheckpointsMonitor# your compiled Keras Model instancemodel=build_model()# Local filesystem snapshots monitor with FTP backup/restore# Different model architectures should have different version parameter# other parameters similar to Keras ModelCheckpoint# See sizif.storage.FileCheckpointsMonitor for local file only backup/restorecpm=FTPFileCheckpointsMonitor(1,'weights.{epoch:03d}-vl{val_loss:.3f}-va{val_acc:.3f}.hdf5',local_folder='/snapshots_local_dir',remote_folder='/snapshots_ftp_dir',host='ftp.your-host.com',login='your_ftp_login',password='your_ftp_password',die_on_ftperrors=True,rotate_number=3,monitor='val_loss',verbose=1,save_best_only=False,save_weights_only=True,mode='auto',period=1)# Keras wrapper, proxies all calls to the model# except `fit` and `fit_generator` — which are surrounded# by automated model state backup/recoverykm=KerasModelWrapper(model,cpm)# all method parameters are proxied to Keras as is except callbacks# callbacks are extended with `cpm` listenerkm.fit_generator(training_set_generator,epochs=25,validation_data=test_set_generator,callbacks=[tboard])See sources for detailed docstringsTODO:SSH/S3/Dropbox uploading monitorsTensorflow/Pytorch models supportTestspython3 -m unittestDependenciesnumpy ~> 1.15Keras ~> 2.2LicenseThis project is released under the MIT license.
Package: sj201-interface
SJ-201 InterfaceContains Python bindings for released versions of the SJ201 usingMycroft testing codefor reference.CLI Usagesj201 get-revisionGet a string representation of the detected SJ201 board (6or10) or0sj201 reset-led <color>Chase the specified color and then chase off LED ring. Valid colors are:whiteyellowredgreenbluemagentaburnt_orangemycroft_redmycroft_greenmycroft_blueNOTE: On the SJ201R10, this command must be run as rootsj201 set-fan-speed <percent>Set the fan speed to the specified speed as a percentage.NOTE: On the SJ201R10, changing the fan speed is currently not persistent and
the fan will default to 100% after momentarily setting the requested speed.
Setting speed to 0 will turn off the fan until the Raspberry Pi is shut down,
at which point the fan will resume 100%.sj201 init-ti-ampPerform boot time initialization of the TAS5806 Audio Amplifiersj201 patch-config-txtPerform one-time update of config.txt for detected SJ201 hardware.NOTE: Applying this could cause damage or unexpected behavior for connected
HATs/GPIO components.NOTE:rebootwill cause kernel panics unless power is physically disconnected
Package: sjb.browserdriver
This project contains a wrapper for selenium, a framework to automate a browser,
and often used in testing.   This wrapper providesLogging, because good software has good loggingBrowser Upgrade Protection; because as they race to out-do each other, the
browser behaves differently with some updatesSelenium behavior supplementation; for instance, with an update, Chrome required
an element to be scrolled into view or an error occurred.  Having a central wrapper
allows for making that sort of update in one locationScreenshots, because if you want to run lights-out (not visible), you’ll need a
screenshot of what went wrong to fix it.Installationc:\browser_test>venv\scripts\pip-installsjb.browserdriverTo upgrade an existing installation add the additional switchc:\browser_test>venv\scripts\pip-installsjb.browserdriver--upgradeRecent ChangesThe full change log can be found at [TODO: update with link]v0.1.3 - Bug fix where the setup process would update the cfg file key = value where the bat file was
updating as key=value.v0.1.2 - Bug fix in dist_pypi.bat+browser_driver.cfgv0.1.1 - Updated setup.py adding find_and_list_packages() method.  Updated the dist_pypi.bat script in a number of ways.
Including updating the date we uploaded to a pypi environment in the project cfg file.v0.1.0 - First development release to test.pypi.org with Semantic Version number scheme.DocumentationThis project is documented using Sphinx and reStructuredText, using a theme provided by Read the Docs.Documentation can be found in several locationsdocs\ as htmldocs_source\ as reStructuredText sourcehttps://shawnjburke.github.io/browser_driver/
Package: sjb.pyguide
Documentationhttps://shawnjburke.github.io/py_guide/The docs are hosted with gitHub Pages, with html in the docs/ folder, powered by reStructured text markup in the
data-source folder.  You can get to the root atpy_quide.Purpose of this ProjectThis project implements a Python Project generator.  It’s aim is to create a standard framework for Python
projects that includes best practices.  The results should be code that is documented, has an installation
and versioning paradigm in place, and makes it easier for a programmer to do things that are often tedious.Best practice steps are organized as follows:Step 1 -Install PythonStep 2 -Install PyCharmStep 3 -Python Project StructureStep 4 -Documentation MattersStep 5 -setup.pyfor success early in your projectInstallationAt this time you can’t install this module.  At a later version the installation will provide an interface to create
the recommended project structure, documented here.>>>venv/scripts/pipinstallsjb.pyguideVersion History0.2.5 - Fix missing installation requirements in setup.py0.2.4 - Fix issues with generated project, wheel installation file, not working.  Add several files missing from generated project.0.2.3 - Beta version of project generator.  Creates a Python 3.x project with best practices, including initialized virtual environment.0.2.2 - Adding in incomplete changes for project generator on way to v0.3.0.  Will create directory structure and 1/2 dozen files for the project.  Not complete yet.0.2.1 - Remove revealjs theme which is no longer supported and didn’t work right anyway.0.2.0 - Updated a number of package requirements such as sphinx themes to meet compatibility requirements.0.1.0 - First version with semantic versioning schema.  Most of documentation is strong.  Console script to create a project is in an development state.
Package: sjb-todo
# sjb_todoA simple CRUD command line program for working with 'todo lists'This project is licensed under the MIT license.# InstallationThis program is in pre-alpha and is not using any deployment tools so I make zero guarantees about installation.However, I have written a crude script that should more or less work provided the user has `python3.6` installed in a linux environment and has all of the required python dependencies. Since these dependencies are subject to change, and this is my first time writing a deployed python app, I have not bothered to record them or incorporate them into the install script. In the future I hope to fix this.## Instructions~~~~$ cd <this directory>$ ./install.sh$ mkdir -p ~/.local/share/sjb/todo~~~~where `<this directory>` is the directory containing this README file. Also it's important that you run `./install.sh` as a regular user (dont use sudo).# DevelopingThere is a script `setup_dev.sh` which sets up a virtual environment. This causes `sjb-todo` to execute the local code in `src` instead of the code installed on the system.To enter the development environment:~~~$ cd <this directory>$ . setup_dev.sh~~~where `<this directory>` is the directory containing this README file.To leave the development environment just type:~~~~$ deactivate~~~~Warning: the development environment still uses the same data files as the real environment. This will eventually be fixed.
Package: sjb-tools
# sjb-tools
A set of simple command line productivity tools.This project is licensed under the MIT license.Currently there are two tools: a todo list (sjb-todo) and a cheatsheet
(sjb-cheatsheet). Each of these programs allows the user to create, read,
update, and delete (CRUD) new entries from the command line. These are
designed to be simple and transparent replacements for common producitivity
tools (like Apple’s reminders).Currently there is only a command line interface that interacts with local
data. Eventually I plan to have these talk to other services and will maybe
build a command line.# Installation
Assuming you have python3.X andpip3installed on your system:
~~~~
# pip install sjb-tools
~~~~# Usage
Seesjb-cheatsheet –helpandsjb-todo –helpfor usage. This file is not
kept up to date.# Developing
A “proper” development environment has not been created yet. However, there is
a crude script which creates s virtual environment. From the main project
directory:
~~~~
$ . setup_dev.sh
$ . venv/bin/activate
$ pip install sjb-tools
~~~~
You have to rerun the last line every time you change the source code in order
for it to take effect.Warning: the development environment still uses the same data files as the real environment. This will eventually be fixed.
Package: sjcl
Python-SJCL===========[![Travis CI](https://travis-ci.org/berlincode/sjcl.svg?branch=master&style=flat)](https://travis-ci.org/berlincode/sjcl)[![Python versions](https://img.shields.io/pypi/pyversions/sjcl.svg)](https://pypi.python.org/pypi/sjcl/)[![new-style BSD](https://img.shields.io/pypi/l/sjcl.svg)](https://github.com/berlincode/sjcl/blob/master/LICENSE.txt)Decrypt and encrypt messages compatible to the "Stanford Javascript CryptoLibrary (SJCL)" message format. This is a wrapper around pycrypto.This module was created while programming and testing the encryptedblog platform on cryptedblog.com which is based on sjcl.Typical usage may look like this:```python#!/usr/bin/env pythonfrom sjcl import SJCLcyphertext = SJCL().encrypt(b"secret message to encrypt", "shared_secret")print cyphertextprint SJCL().decrypt(cyphertext, "shared_secret")```Public repository-----------------[https://github.com/berlincode/sjcl](https://github.com/berlincode/sjcl)License-------Code and documentation copyright Ulf Bartel. Code is licensed under the[new-style BSD license](./LICENSE.txt).v0.1.1, 2014-05-21 -- Initial public release.v0.1.4, 2016-04-17 -- Re-init of repository after homepage changed.v0.1.5, 2016-07-12 -- Python3 compatv0.1.6, 2017-07-31 -- Now dependent on pycryptodomev0.2.0, 2018-02-22 -- AES-GCM mode supportv0.2.1, 2018-08-16 -- Fixed README.md (missing 'b' prefix for use with python3)
Package: sjcl-json
Python-SJCL-jsonNOTE: this is repo fork fromhttps://github.com/berlincode/sjcl, I only change the output result to json string, since the json string will work better together with the origin javascript version.Decrypt and encrypt messages compatible to the "Stanford Javascript Crypto
Library (SJCL)" message format. This is a wrapper around pycrypto.This module was created while programming and testing the encrypted
blog platform on cryptedblog.com which is based on sjcl.Typical usage may look like this:#!/usr/bin/env pythonfromsjclimportSJCLcyphertext=SJCL().encrypt(b"secret message to encrypt","shared_secret")print(cyphertext)print(SJCL().decrypt(cyphertext,"shared_secret"))Public repositoryhttps://github.com/berlincode/sjclLicenseCode and documentation copyright Ulf Bartel. Code is licensed under thenew-style BSD license.v0.1.1, 2014-05-21 -- Initial public release.
v0.1.4, 2016-04-17 -- Re-init of repository after homepage changed.
v0.1.5, 2016-07-12 -- Python3 compat
v0.1.6, 2017-07-31 -- Now dependent on pycryptodome
v0.2.0, 2018-02-22 -- AES-GCM mode support
v0.2.1, 2018-08-16 -- Fixed README.md (missing 'b' prefix for use with python3)
v0.2.2, 2020-01-12 -- Aaron/Arstman, use json to for the result to make more copmatible with javascript version
Package: sjgefily
A sample project that exists as an aid to thePython Packaging User Guide’sTutorial on Packaging and Distributing
Projects.This projects does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.This is the README file for the project.The file should use UTF-8 encoding and be written usingreStructuredText. It
will be used to generate the project webpage on PyPI and will be displayed as
the project homepage on common code-hosting services, and should be written for
that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not
a good idea, although a simple “What’s New” section for the most recent version
may be appropriate.
Package: sjgefily1
A sample project that exists as an aid to thePython Packaging User Guide’sTutorial on Packaging and Distributing
Projects.This projects does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.This is the README file for the project.The file should use UTF-8 encoding and be written usingreStructuredText. It
will be used to generate the project webpage on PyPI and will be displayed as
the project homepage on common code-hosting services, and should be written for
that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not
a good idea, although a simple “What’s New” section for the most recent version
may be appropriate.
Package: sjgefily2
A sample project that exists as an aid to thePython Packaging User Guide’sTutorial on Packaging and Distributing
Projects.This projects does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.This is the README file for the project.The file should use UTF-8 encoding and be written usingreStructuredText. It
will be used to generate the project webpage on PyPI and will be displayed as
the project homepage on common code-hosting services, and should be written for
that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not
a good idea, although a simple “What’s New” section for the most recent version
may be appropriate.
Package: sji-load-tables
sji_load_tablesAPython Libraryfor looking up values from the Steel Joist Institute (SJI) load tables​Developed and maintained byMark Denavit'sresearch group, authorized by the Steel Joist Institute.The load table data is based on the44th Edition Catalog.This Python library is for general information only. It is intended to be an accurate, reliable, and
useful tool, however, it should not be used or relied upon for any specific project without competent
professional assessment of its accuracy, suitability, and applicability. Any person using this Python
library does so at their own risk and assumes all liability arising from such use.Please report any bugs, errors, feature requests toProf. Denavitorcreate an issue.Installpipinstallsji_load_tables