Saravanan666/pypi-org huggingface dataset:
Package: utilfunction
Development Status :: 3 - AlphaCopyright (c) 2023 MinWoo Parkutil-functionThe Python package utilfunction wraps and distributes useful functions in an easy-to-use way. We have collected functions that are simpler in function than many distributed Python packages or whose category is ambiguous.For personal purposes, I am curating repetitive functions and planning to categorize and distribute them along with documentation in the future. I recommend not using them until major version 1.Installationpip install utilfunction$ pip install git+https://github.com/dsdanielpark/util-function.gitFeaturespath_finder.py- function: find_allFind the path of a file or folder.fromutilfunctionimportfind_allnii_file_list=find_all('./home','file','mask.nii.gz')astyper.py- function: col_converterRestores a column whose array is stored as a string type back to an array type.fromutilfunctionimportcol_convertdf_has_converted_col=col_convert(df,"embedding_arrays")beep.py- function: beepMake beepfromutilfunctionimportbeepbeep()sec=10feq=800beep(sec,feq)bib2md.py- function: bib2mdConvertbib filetomarkdown filefromutilfunctionimportbib2mdbib_path='./sample_data/attention_based.bib'save_path='./sample_data/attention_based.md'title_key='title'bib2md(bib_path,title_key,save_path)pq.py- function: df_to_pqpd.DataFrame object to parquet objectfromutilfunctionimportdf_to_pqexample_df=pd.DataFrame({'A':[1,2,3],'B':[4,5,6]})output_folder='output'output_file_name='example.parquet'df_to_pq(example_df,output_folder,output_file_name)pq.py- function: gen_hexGenerating random hexfromutilfunctionimportgen_hexgen_hex(8)How to ContributePlease create a pull request for any function that is useful and simple to reuse. Create a function, and write a tutorial with the same name as the function in the doc folder. Any snippet that you are comfortable with and use often will do. However, some contents may be revised and adjusted later for convenience.Create a Python file containing functions inutilfunction folder. You must include formatting and doc strings in your function.Write brief explanations and examples in thedoc folderWrite a one-line code example in README.mdMake a Pull RequestPlease refer to thefind_allfunction inpath_finder.py.Styled with blackblack .Lnted with pylintpylint --rcfile=setup.cfg util-function/Type-checked with mypymypy util-function/Pass the pytest unit testspytestNoticeThis repo goes through a simple QA process, there are no major refactoring plans, and it's not a planned project, so it's in alpha.If there is a reference, please list it at the top of each Python file.Coverage of Python versions is subject to change. However, the code formatting is changed to black during the QA process.
Package: util-hj3415
util-hj3415util-hj3415 is the collection of utility functions.세가지 모듈이 존재한다. - krx, noti, utilsInstallationpip를 사용하여 설치한다.pipinstallutil-hj3415Usageutils modulefromutil_hj3415importutilsdefto_float(s)->float:defto_억(v)->str:defto_만(v)->str:defstr_to_date(d:str)->datetime.datetime:defdate_to_str(d:datetime.datetime)->str:noti modulefromutil_hj3415importnotidefmail_to(title:str,text:str,mail_addr='hj3415@hanmail.net')->bool:BOT_LIST=['manager','dart','eval']deftelegram_to(botname:str,text:str,parse_html:bool=False)->bool:krx modulefromutil_hj3415importkrxMIN_REFRESH_DAY=10# krx 데이터베이스를 refresh 한다.krx.make_db()# 데이터베이스가 MIN_REFRESH_DAY 보다 오래되었는지 확인한다.krx.is_old_krx()# 전체 코드를 리스트로 반환한다.krx.get_codes()# 전체 코드를 키로하고 종목명을 값으로 하는 딕셔너리를 반환한다.krx.get_name_codes()# 삼성전자를 반환한다.krx.get_name(code='005930')# 전체 종목코드의 1/10을 날짜베이스로 반환한다.(dart 에서 사용한다.)krx.get_parts()ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: utilidades-dados
utilidades_dadosDescription.
The package utilidades_dados is used to:OPERACOES:
- metade
- dobro
- aumento
- diminui
- moeda
- tabelaform
- resumo

TRATAMENTO_DADOS:
- filtrodados
- adicionar_coluna_dados
- taxa_evolucaoInstallationUse the package managerpipto install utilidades_dadospipinstallutilidades_dadosAuthorDanilo CaienaLicenseMIT# utilidade-dados-packageutilidade-dados-package
Package: utilipy
utilipyis a Python package for non project-specific code. There are modules for making advanced decorators, interfacing with IPython environments, data utilities, making fitting libraries inter-operable, improving astropy units and quantity-enabled functions, and much more.DocumentationThe documentation forutilipyis hosted onRead the docs.Thewikihas miscellaneous coding / science tips and tricks.Installation and DependenciesThe easiest way to getutilipyis to install with pip. To install with pip:pip install utilipySee theinstallation instructionsin thedocumentationfor more information.AttributionIf you make use of this code, please consider citing the Zenodo DOIas a software citation:@software{utilipy:zenodo,
  author       = {nstarman},
  title        = {utilipy v1.0},
  month        = mar,
  year         = 2020,
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.3724822},
  url          = {https://doi.org/10.5281/zenodo.3724822}
}LicenseCopyright 2018- Nathaniel Starkman and contributors.utilipyis free software made available under the BSD-3 License. For details see theLICENSEfile.
Package: utilita
ðŸ”§ utilitaa utility libraryQuick installpipinstallutilitaBasic usage[decent pitch]. Let's dive in.Out-of-the-box you get some stuff you can do with utilita:importdatetimefromutilitaimportdate_fnsw52d7=datetime.date(2020,12,27)w53d1=datetime.date(2020,12,28)date_fns.is_in_leap_week(w52d7)# => Falsedate_fns.is_in_leap_week(w53d1)# => Truedate_fns.days_since_same_date_last_year(w52d7)# => 364 (days in non-leep-week years)date_fns.days_since_same_date_last_year(w53d1)# => 371 (days in leep-week years)more about ISO 8601 leap weeks:https://en.wikipedia.org/wiki/ISO_week_dateExamples:Working with sendgridfromutilitaimportsendgridhelperassghelpereml=sghelper.SendgridHelper(sendgrid_api_key=os.getenv('sendgrid_key'),from_email={"email":'test@example.com',"name":"Test BI"})email_subject=f'Testing email from Test BI sent on{int(datetime.datetime.now().timestamp())}'email_body='''<html><body>Hello, <br />This is a test email<br /><i>Derp</i><br><br>Thank you,<br>Test BI</body>'''eml.config_email(subject=email_subject,body=email_body,recipients={"to":"user1@example.com, user2@example.com",#  "cc": "test@example.com",#  "bcc": "bcc@example.com"})# Attach excel files from disk:eml.attach_excel_file_from_path('files/1.xlsx')eml.attach_excel_file_from_path('files/2.xlsx')# attach dataframe as a csv file.importpandasaspdheaders=['date','department','sales']data=[('2023-12-20','Bread',100),('2023-12-20','Deli',1),('2023-12-20','Frozen',400)]df=pd.DataFrame(columns=headers,data=data)# compressed will compress to a zip file.eml.attach_single_df_as_csv(df=df,df_filename='sales.csv',compressed=True)# Send emaileml.send_email()Example for working with excel workbooksfromutilitaimportexcelimportpandasaspdimportopenpyxlasxlwb=xl.load_workbook(filename='files/tables.xlsx')# Load dataframe into an excel table:df=excel.excel_table_to_df(wb=wb,sheet_name='Sheet1',table_name='Table2')# Get data from an excel table into a dataframe:# Export table into excel workbookheaders=['date','department','sales']data=[('2023-12-20','Bread',100),('2023-12-20','Deli',1),('2023-12-20','Frozen',400)]df=pd.DataFrame(columns=headers,data=data)excel.df_to_excel_table_resize(df=df,wb=wb,sheet_name='Sheet1',table_name='Table2')
Package: utilitarian-collector
# utilitarian-collector
Server to receive and handle meter data in an extensible wayChangelogThe format is based onKeep a Changelog: https://keepachangelog.com/en/1.0.0/,
and this project adheres toSemantic Versioning: https://semver.org/spec/v2.0.0.htmlUnreleasedAddedDefault logging settingsChangedDeprecatedRemovedDirect DLMS usage. Should be defined in project using the frameworkFixedSecurityv0.0.2AddedDefault logging settingsRemovedDirect DLMS usage. Should be defined in project using the framework
Package: utilitarian-queue-consumer
Utilitarian Queue ConsumerA micro framework for writing consumers of AMR-UM or other AMQP messages.ChangelogThe format is based onKeep a Changelog: https://keepachangelog.com/en/1.0.0/,
and this project adheres toSemantic Versioning: https://semver.org/spec/v2.0.0.htmlUnreleasedAddedChangedDeprecatedRemovedFixedSecurity
Package: utilities
utilities is a super-awesome module which lets you perform basic image-processing operations at your finger tip. You can use it like this:import utilities as ut
import cv2#Load the image
img = cv2.imread(‘hf.png’);#Here we start using the utilities module.#Use the translate function of utilities module. Returns a translated image.
translate_img = ut.translate(img, 50, 50);#Use the rotation function of utilities module. Returns a rotate image.
rotate_img = ut.rotate(img, img.shape[0]/2.0, img.shape[1]/2.0, 45, 1.0);#Display the images.
cv2.imshow(‘original’, img);
cv2.imshow(‘translate_img’, translate_img);
cv2.imshow(‘rotate_img’, rotate_img);
cv2.waitKey(0);
cv2.destroyAllWindows();
Package: utilitime
A small pure-python package for utility decorators.fromutilitime.datetimeimportdatetime_to_dateintfromutilitime.dateintimportshift_dateint,today_int,dateint_rangestart_dateint=datetime_to_dateint(some_dt_obj)day_after_tomorrow=shift_dateint(today_int,2)dateints_to_process=dateint_range(start_dateint,day_after_tomorrow)Contents1Installation2Components2.1dateint2.2datetime2.3time2.4timestamp2.5weekday2.6TimeInterval3Contributing3.1Installing for development3.2Running the tests3.3Adding documentation4Credits1InstallationInstallutilitimewith:pipinstallutilitime2ComponentsThe package is composed of several sub-components, each dedicated to functions dealing with mainly one type of time representation.2.1dateintThe dateint format uses integer objects to decipt a specific calendaric day; e.g.20161225. This components deals with converintg and transforming objects of this type.2.2datetimeUtilitu methods for standarddateime.dateimeobjects.2.3timeUtilitu methods for standarddateime.timeobjects.2.4timestampThe timestamp format uses integer objects to decipt a specific moment in time by seconds (or sometimes milliseconds) since the epoc;h e.g.1506984924. This components deals with converintg and transforming objects of this type.2.5weekdayUtility methods for ordered lists of weekday names.2.6TimeIntervalDefines a type corresponding to a time interval between two specific points in time (and not their difference, likedatetime.timedelta).3ContributingPackage author and current maintainer is Shay Palachy (shay.palachy@gmail.com); You are more than welcome to approach him for help. Contributions are very welcomed.3.1Installing for developmentClone:gitclonegit@github.com:shaypal5/utilitime.gitInstall in development mode with test dependencies:cdutilitimepipinstall-e".[test]"3.2Running the testsTo run the tests, use:python-mpytest--cov=utilitime3.3Adding documentationThis project is documented using thenumpy docstring conventions, which were chosen as they are perhaps the most widely-spread conventions that are both supported by common tools such as Sphinx and result in human-readable docstrings (in my personal opinion, of course). When documenting code you add to this project, please followthese conventions.4CreditsCreated by Shay Palachy  (shay.palachy@gmail.com).
Package: utilitybox
UtilityBoxUtilityBox is a collection of useful tools and utilities for Python.FeaturesGeneration of random number lists.Sorting algorithms like Bubble Sort and Selection Sort.InstallationUse the package managerpipto install utilitybox.pipinstallutilityboxBasic Usagefromutilityboximportgeneralsfromutilityboximportordering# Example of generating a random number listnumbers=generals.random_number_list(10)# Example of sorting using Bubble Sortsorted_numbers=ordering.bubble_sort(numbers)DevelopmentDeveloped byJose Angel Colin Najera.LicenseThis project is licensed under the MIT License
Package: utilitycloud
Utility Cloud Python Library ( 0.0.1 release)This python library is used to access & interact with theUtility Cloud'sAPI. It is necessary for bulk editing assets, asset classes, workflows, workflow fields, work orders, etc... Once a client asked us about it, we decided to make it public, free & available for everyone to use.InstallationInstall from the recommended package installer,pip.https://pypi.org/project/utilitycloud/pipinstallutilitycloudLicenseLicensed under MIT.A Work In ProgressIf you have any questionscontact us
Package: utilitys
UtilitysGeneral Python UtilitiesA collection of PyQt gui builders and other functions I've found helpful as I develop python mockups.Installationutilityslives in pypi too, so the easiest way to install it is throughpip:pipinstallutilitysNote that a version of Qt must be installed for it to work, such as PyQt5/6 or Pyside2/6.
PyQt5 will also be installed withpip install utilitys[full]Alternatively, you can do so through downloading the repository:gitclonehttps://gitlab.com/ntjess/utilitys
pipinstall-e./utilitys# Or ./utilitys[full] as mentioned aboveUsageUsage will vary depending on the requested capabilities. Check out theexamplesfolder for some usages
Package: utility-stella
##https://codigofacilito.com/cursos/taller-modulos-paquetes-pythonprovando un paquetepython -m utility_stella
python setup.py sdist##pip install pip --upgrade  DA ERRORE
pip install twine
twine upload dist/*https://pypi.org/account/login/##TEST
pip install utility_stella==0.0.1
pythonfrom codigofacilito_jorgef import unreleased
unreleased()
Package: utilki
utilkiutils that are frequently used by me and might be useful for othersinstallationpipinstallutilkiTaskMixinMixin class that addscreate()classmethod to dataclass you define as your task params. Useful when you have a lot of container based tasks executed on remote clusters (e.g. Kubernetes, Hashicorp Nomad, etc.). It reads task params from environment variables, parses, and validates them.fromutilkiimportTaskMixin@dataclassclassTask(TaskMixin):ayy:float=69.69lmao:str="420"os.environ["ayy"]="42.42"os.environ["lmao"]="69"t=Task.create()print(f"ayy:{t.ayy}, type:{type(t.ayy)}")# ayy: 42.42, type: <class 'float'>print(f"lmao:{t.lmao}, type:{type(t.lmao)}")# lmao: 69, type: <class 'str'>CliVenv$utilkivenv3.8.10
$Entervenvname:new_venv
$Createdvenv`new_venv`withPythonversion3.8.10
Package: utilkit
Some useful functions and usability that should be shared between your apps.Repo:https://github.com/aquatix/python-utilkit/InstallationFrom PyPIAssuming you already are inside a virtualenv:pipinstallutilkitIf you want to use yaml-related functionality (like fileutil.yaml_ordered_load), please also install PyYAML throughpip install PyYAML. This is not istalled by default to keep the dependencies limited.From GitCreate a new virtualenv (if you are not already in one) and install the
necessary packages:gitclonehttps://github.com/aquatix/python-utilkit.gitcdutilkitmkvirtualenvutilkit# or whatever project you are working onpipinstall-rrequirements.txtdatetime utilsfile utilsprint utilsPretty printing of data, for example the formatting of two-dimensional lists into
a table which finds out the correct width of its columns by itself (to_smart_columns).string utilsWhat’s new?See theChangelog.
Package: utillc
a utility for smart loggingLike this :#source code of test.pyfrom utillc import *
import utillc
import time

a,b = 1,"23"
EKOX(a)
EKOX((a, b))
for i in range(5) :
		time.sleep(1)
		EKOX(i)

EKO()
EKOT("done")Output :MINEKOLEVEL=0 python test.pytest.py:8: [0021ms] a=1.
test.py:9: [0000ms] a = 1,  b = 23.
test.py:12: [1002ms] i=0.
test.py:12: [1003/1003ms] i=1.
test.py:12: [1002/1002ms] i=2.
test.py:12: [1003/1003ms] i=3.
test.py:12: [1002/1002ms] i=4.
test.py:14: [0000ms] .
test.py:15: [0000ms] =done.format understood by emacs filename:linenumbertime since last EKOtime since last time when same line executedoutput format : =more compact than fstring and compatible back to python 2.7
Package: utilless
utillessUseless library if you have time for puzzles, a useful one if you don'tQuickstartInstall using pip:pip install utillessand import package into your script, v.g.from utilless.comma import commaspaceprint(commaspace(['Hello', 'world!']))Module commaManipulates iterables and gets results with commasiterable: any element that has __ iter __ method, like
list, tuple, set, dict or even str.justcomma(iterable)>>> justcomma(['apples', 'bananas', 'tofu', 'cats'])'apples,bananas,tofu,cats'commaspace(iterable)>>> commaspace(['apples', 'bananas', 'tofu', 'cats'])'apples, bananas, tofu, cats'commaand(iterable)>>> commaand(['apples', 'bananas', 'tofu', 'cats'])'apples, bananas, tofu, and cats'or commaand(iterable, str)>>> commaand(['apples', 'bananas', 'tofu', 'cats'], ' & ')'apples, bananas, tofu & cats'Module dotManipulates iterables and gets results with dotsjustdot(iterable)>>> justdot(['apples', 'bananas', 'tofu', 'cats'])'apples,bananas,tofu,cats'Module isevenInfamous function. Learn how to use modulo (%)iseven(int)>>> iseven(1)False>>> iseven(42)TrueModule isoddSee module isevenisodd(int)>>> isodd(1)True>>> isodd(42)False
Package: utillib
What is this?This is a collection of Python modules containing auxiliary functions used in several other projects.InstallationThis package can be installed using pip (recommended way):pip3 install utillibor by downloading and running:python3 setup.py installWeb sitesThe source code of this package is hosted on:https://github.com/jor-/utilA Python wheel is available on:https://pypi.python.org/pypi/utillibAuthorJoscha Reimerjor@informatik.uni-kiel.deCopyrightCopyright (C) 2011-2016  Joscha Reimerjor@informatik.uni-kiel.deThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
Package: util-logger
Util-LogsIntroductionFeaturesGetting StartedPrerequisitesUsageContributingLicenseIntroductionA logging utility that integrates Python's built-in logging library with enhanced features like color-coding and file line tracing.FeaturesEasy setup: Simply instantiate the Logger class with a logger name.Level-based color-coding: Each log level has its own color, making it easier to visually scan logs.Traceback information: Have the option to include filename and line number in your logs for easier debugging.Getting StartedUse the package manager Poetry to install Util-Logs:poetry add util-logsPrerequisitesPython >= 3.10.xUsageHere is a basic example on how to use Util-Logs:from util_logs import LoggingInitialize the loggerlogger = Logging('MyLogger')Log some messageslogger.debug('This is a debug message')logger.info('This is an info message')logger.warning('This is a warning message')logger.error('This is an error message')logger.critical('This is a critical message')ContributingContributions are welcome! Please fork the repository and create a Pull Request with your changes.LicenseUtil-Logs is licensed under the MIT License. See the LICENSE file for more details.
Package: utilmac
macutilMAC Address brute forcing tool, used to bypass MAC based filteringNetwork Access Control solutions are a simple idea, 802.1X cert based
authentication, great! works like a charm. However, businesses are complex
beasts and not all systems on that network support 802.1X and/or cert based
authenticaiton.In this situation most look to simple MAC authentication to handle the
exceptions.So if lets say your IP phones are on the same network, if we can find the
correct MAC address we can essential spoof that address and access the network.This utility was designed for exactly this, MAC address manipulation and brute
forcing.
Package: utilmy
Utilities function: load/save sessions, ....


[![Downloads](https://static.pepy.tech/badge/utilmy)](https://pepy.tech/project/utilmy)




Stats usage:
  https://pepy.tech/project/utilmy

  https://pypistats.org/packages/utilmy

  https://groups.google.com/g/utilmy




Hash:
0f7487a5ea6bb024c110e589676a990d42129cc9
Package: utiloori
Utiloori - oori's miscellaneous toolkitUtiloori is primarily developed by the crew atOori Data. We offer software engineering services around LLM applications.Table of contents:print ansi colors in terminalcolorsusageSpin up a PostgreSQL vector database using Docker with a custom configLocallyOn a remote hostprint ansi colors in terminalWraps text in ANSI color codes (and terminators) for printing colored text to console.Some terminals, notably VSCode's, try to be clever about not displaying unreadable text; they might override the font color you specify if you specify a background color that is too similar to the font color. For example, if you specify a black font color on a red background, VSCode will override the font color to white.colorsthe following "standard" ansi colors are supported:blackredgreenyellowbluepurplecyanwhiteusagefrom utiloori.ansi_color import ansi_colorprint string with green font:green_string=ansi_color('lorem','green')print(green_string)print string with purple background (with default, white font):purple_bg_string=ansi_color('ipsum',bg_color='purple')print(purple_bg_string)print string with red font on a blue background:red_on_blue_string=ansi_color('dolor','red','blue')print(red_on_blue_string)Spin up a PostgreSQL vector database using Docker with a custom configLocallyClone the repository.From the root, run:dockercompose-fcompose.PGvector.ymlup-d--build(you can remove--buildif you don't want to rebuild the image)
3. Now you have PGv database running onlocalhost:5432and anadminerinterface onlocalhost:8080On a remote hostClone the repository on your local machine.Copypg_configs/postgresql.confto/etc/postgresql.conf(or another absolute path) on the remote host.If you choose another absolute path, make sure to modifycompose.PGv_remote.ymlas follows:volumes:
    # This is in the remote itself, not in the repo. See pg_configs for references
    - <custom_path_here>:/etc/postgresql.confSet up aremote docker contextand switch to it.dockercontextcreate<context_name>--dockerhost=ssh://<user>@<remote_host_ip>

dockercontextuse<context_name>Run:dockercomposeup-fcompose.PGv_remote.ymlNow you have PGv database running on<remote_host_ip>:5432and anadminerinterface on<remote_host_ip>:8080Configurable:All the options inpg_configs/postgresql.conf, by defaultmax_connectionsto 200  andshared_buffersto 128mbInside ofcompose.PGvector.ymlorcompose.PGv_remote.ymlPOSTGRES_USER: The username used to connect to the database.POSTGRES_PASSWORD: The password used to connect to the database.POSTGRES_DB: The name of the database created.Ports can be configured insidecompose.PGvector.yml
Package: utilpy
Welcome to utilspy documentation!Collection of python utils.For detailHere is DocumentationInstallpip3installutilpyutilspy packageimporttimefromutilpyimportlog,files,decorator# logger functionlogs=log.Logger()logs.log("< started >")time.sleep(2)logs.log("running..")time.sleep(1)logs.log("</>")# timeout@decorator.timeout(5)defadd(x,y):returnx+y# other useful utilsfiles=utils.walk_directory('.')