Saravanan666/pypi-org huggingface dataset:
Package: advanced-ta
This module is a python implementation of Lorentzian Classification algorithm developed by @jdehorty in pinescript. The original work can be found here -https://www.tradingview.com/script/WhBzgfDu-Machine-Learning-Lorentzian-Classification/UsageAt the most simplest, you can just do this:fromadvanced_taimportLorentzianClassification..# df here is the dataframe containing stock data as [['open', 'high', 'low', 'close', 'volume']]. Notice that the column names are in lower case.lc=LorentzianClassification(df)lc.dump('output/result.csv')lc.plot('output/result.jpg')..For advanced use, you can do:fromadvanced_taimportLorentzianClassificationfromta.volumeimportmoney_flow_indexasMFI..# df here is the dataframe containing stock data as [['open', 'high', 'low', 'close', 'volume']]. Notice that the column names are in lower case.lc=LorentzianClassification(df,features=[LorentzianClassification.Feature("RSI",14,2),# f1LorentzianClassification.Feature("WT",10,11),# f2LorentzianClassification.Feature("CCI",20,2),# f3LorentzianClassification.Feature("ADX",20,2),# f4LorentzianClassification.Feature("RSI",9,2),# f5MFI(df['open'],df['high'],df['low'],df['close'],df['volume'],14)#f6],settings=LorentzianClassification.Settings(source='close',neighborsCount=8,maxBarsBack=2000,useDynamicExits=False),filterSettings=LorentzianClassification.FilterSettings(useVolatilityFilter=True,useRegimeFilter=True,useAdxFilter=False,regimeThreshold=-0.1,adxThreshold=20,kernelFilter=LorentzianClassification.KernelFilter(useKernelSmoothing=FalselookbackWindow=8relativeWeight=8.0regressionLevel=25crossoverLag=2)))lc.dump('output/result.csv')lc.plot('output/result.jpg')..Sample PlotGeneratedReference From TradingViewVersion History0.1.8Replacing dependency onTA-Libwithtato simplify setup
Package: advanced-telegram-bot
Advanced Telegram BotPython library containing utils for telegram botsAuthorsmade bySDAL:minish144&usual-oneAvailable utilsIncoming/outcoming messages serviceLocale-dependent data storageLoggerRole systemState systemUser meta data storageDependenciesAll the dependencies can be found inrequirements.txtfile.Installationpip install advanced-telegram-botUsageJust import the class and you're good to gofromadvancedbotimportTelegramBotDocumentation & helpHelp can be found in ourwiki pages.
Package: advanced-value-counts
Welcome to advanced-value-countsadvanced-value-counts is a Python-package containing theAdvancedValueCountsclass that makes use of pandas'.value_counts(),.groupby()andseabornto easily get a lot of info about the counts of a (categorical) column in a pandas DataFrame. The potential of this package is at its peak when wanting info of counts of a column after a grouping:df.groupby(groupby_col)[column].value_counts(). Clickhereto read how to useAdvancedValueCounts. Readthis medium articleor consultthis notebookfor an explanation on the added value of this package.Git repository.Table of contents:Installation for users using PyPiInstallation for users without PyPiUsageInstallation for contributorsInstallation for users using PyPipip install advanced-value-countsIf errors surface please upgrade pip and setuptoolspython3 -m pip install --upgrade pip
python3 -m pip install --upgrade setuptoolsInstallation for users without PyPigit clone https://github.com/sTomerG/advanced-value-counts.git
cd advanced-value-counts
pip install -e .
# optional but potentially crucial
pip install -r requirements/requirements.txtTo test whether the installation was succesfull run in the advanced-value-counts directory (DeprecationWarningsare expected)pytestUsagePlease consulthere.Installation for contributorsgit clone https://github.com/sTomerG/advanced-value-counts.git
cd advanced-value-counts
python3 -m venv .venvActivate the virtual environmentWindows:.\.venv\Scripts\activateLinux / MacOS:source .venv/bin/activateInstall requirementspython -m pip install --upgrade pip
pip install -r requirements/requirements.txtTest if everything works properly(DeprecationWarningsare expected)With toxtoxWithout toxpip install -e .
pytest
Package: advantage-air
Advantage Air API WrapperGetReturns the current state of all components.async_get()SetChange attributes by sending the updated values to the relevant endpoint.aircon.async_update_ac(ac: str, data: dict)Update values on the AC systemaircon.async_update_zone(ac: str, zone: str, data: dict)Update values on a specific zonelights.async_update_state(id: str, state: str|bool)Update the state of a light. off|false = off, on|true = onlights.async_update_value(id: str, value: int)Update the brightness of a light, and assumes 0 is off.things.async_update_value(id: str, value : int|bool)Update the value of a thing. 0|false = off, 100|true = on*.async_update(data: dict)Directly update with data to the endpoint.Exampleimport asyncio
import aiohttp
from advantage_air import advantage_air


async def main():
    async with aiohttp.ClientSession() as session:
        aa = advantage_air("192.168.1.24", port=2025, session=session, retry=5)
        if data := await aa.async_get(1):
            print(data)
            aa.aircon.async_update_ac("ac1",{"state": "on"})
            await asyncio.gather(
                aa.aircon.async_update_zone("ac1","z01", {"value": 25}),
                aa.aircon.async_update_zone("ac1","z02", {"value": 50}),
            )

asyncio.run(main())
Package: advarchs
OverviewAdvarchs is simple tool for retrieving data from web archives.
It is especially useful if you are working with remote data stored in compressed
spreadsheets or of similar format.Getting StartedSay you need to perform some data anlytics on an excel spreadsheet that gets
refreshed every month and stored in RAR format. You can target a that file
and convert it to apandasdataframe with the following procedure:importpdimportosimporttempfilefromadvarchsimportwebfilename,extract_web_archiveTEMP_DIR=tempfile.gettempdir()url="http://www.site.com/archive.rar"arch_file_name=webfilename(url)arch_path=os.path.join(TEMP_DIR,arch_file_name)xlsx_files=extract_web_archive(url,arch_path,ffilter=['xlsx'])forxlsx_finxlsx_files:xlsx=pd.ExcelFile(xlsx_f)...RequirementsPython 3.5+p7zipSpecial noteOn CentOS and Ubuntu <= 16.04, the following packages are needed:unrarInstallationpipinstalladvarchsContributingSeeCONTRIBUTINGCode of ConductThis project adheres to theContributor Covenant 1.2.
By participating, you are advised to adhere to this Code of Conduct in all your
interactions with this project.LicenseApache-2.0
Package: advbox
AdvBox是一款由百度安全实验室研发，在百度大范围使用的AI模型安全工具箱，目前原生支持PaddlePaddle、PyTorch、Caffe2、MxNet、Keras以及TensorFlow平台，方便广大开发者和安全工程师可以使用自己熟悉的框架。  AdvBox同时支持GraphPipe,屏蔽了底层使用的深度学习平台，用户可以通过几个命令就可以对PaddlePaddle、PyTorch、Caffe2、MxNet、CNTK、ScikitLearn以及TensorFlow平台生成的模型文件进行黑盒攻击。
Package: advene
Annotate DVds, Exchange on the NEtThe Advene (Annotate DVd, Exchange on the NEt) project is aimed
towards communities exchanging discourses (analysis, studies) about
audiovisual documents (e.g. movies) in DVD format. This requires that
audiovisual content and hypertext facilities be integrated, thanks to
annotations providing explicit structures on  audiovisual streams, upon
which hypervideo documents can be engineered.
.
The cross-platform Advene application allows users to easily
create comments and analyses of video comments, through the
definition of time-aligned annotations and their mobilisation
into automatically-generated or user-written comment views (HTML
documents). Annotations can also be used to modify the rendition
of the audiovisual document, thus providing virtual montage,
captioning, navigation… capabilities. Users can exchange their
comments/analyses in the form of Advene packages, independently from
the video itself.
.
The Advene framework provides models and tools allowing to design and reuse
annotations schemas; annotate video streams according to these schemas;
generate and create Stream-Time Based (mainly video-centred) or User-Time
Based (mainly text-centred) visualisations of the annotations. Schemas
(annotation- and relation-types), annotations and relations, queries and
views can be clustered and shared in units called packages. Hypervideo
documents are generated when needed, both from packages (for annotation and
view description) and DVDs (audiovisual streams).
Package: advent
AdventAdvent is a Python package that contains useful functions for Advent of Code eg getting puzzle input or getting all integers present in a string.InstallationUse the package managerpipto install advent.pipinstalladventSetupTo use this tool you need to create a .env file in your project directory and place there your session ID.# .env file
SESSION_ID="your-session-id"It's stored in a cookie called session. You can find it by entering Inspect Mode in your browser, Application -> Cookies. Check out picture below:Usagefromadvent.functionsimportget_puzzle_input,get_ints# returns "B X\nB Y\nA Y\nB Y\n..."get_puzzle_input(2022,22)# returns [2, 3]list(get_ints("Point x=2, y=3"))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: adventkit
Adventkit -- Advent of Code in PythonThese are my solutions in Python to some of theAdvent of Code
puzzles. My goal is to make the code readable
while also making it reasonably fast.InstallationYou can install Adventkit using pip:pip install adventkitAlternatively, after cloning the Adventkit repository, the code can be
run as is.RequirementsPython 3.6.1+Puzzle input files placed in the right locations: the input for day
1 of Advent of Code 2019 is read frominput/year2019/day01.txt(relative to the current working directory).Optional, to runsrc/run.shafter cloning the repository:A POSIX-compliant shell (/bin/sh)A shell commandpython3to run Python 3.6.1+ (any implementation)If extra speed is desired on selected puzzles: A shell commandpypy3to invoke PyPy 3.6+How to runAfter installing Adventkit, you can run a single day's solver like this:adventkit 2019 10Cloning the repository gives you more options:Run a single day's solver:src/run.sh 2019 10(orpython3 src/run.py 2019 10)Run all solvers:src/run.shRun all solvers from one year:src/run.sh 2019When invoked with the optional argument--time,src/run.shprints
the execution time for each day. If the commandpypy3invokes a
suitable version of PyPy,src/run.shuses it for any solvers that are
expected to run faster under PyPy than CPython.TestingTo run the tests, first installpytestandpytest-subtests, as well
as your local copy ofadventkit. Then run the commandpytest.
Package: adventocr
Advent of Code Optical Character Recognition (adventocr)Some Advent of Code puzzles provide visual outputs which must be
converted into text. This package is a helper to automate this task.Installationpip install adventocrUsageAn example puzzle output may look something likeword=['#','#','#','#',' ','#','#','#','#',' ','#',' ',' ',' ',' ','#',' ',' ',' ',' ','#','#','#',' ',' ','#','#','#',' ',' ','#',' ',' ',' ',' ','#',' ',' ',' ',' ','#',' ',' ',' ',' ','#',' ',' ',' ',' ','#','#','#','#',' ','#',' ',' ',' ',' ']When tidied and printed, this appears to be#### #### 
#    #    
###  ###  
#    #    
#    #    
#### #This process can be automated through:importadventocrparsed=adventocr.word(word)parsed'EF'
Package: adventofcode
adventofcodeHelper utilities for solving Advent of Code puzzles.No copy-pasting puzzle inputs into files.No need to use low-level file APIs to read your inputs.Performance reports for example inputs and puzzle inputs.Submit the answer immediately when your code returns the result 🏎️UsageInstall the packageInstall the package with pip:pipinstalladventofcodeSet your session cookieAdd theadventofcode.comsession cookie value to your env:exportAOC_SESSION="..."Alternatively, you can save yourAOC_SESSION="******"value in a.envfile.[!NOTE]
Setting AOC_SESSION will allow you to get your personal puzzle output (aoc.get_input()) and submit your answers withaoc.submit_p1()andaoc.submit_p2().Use a template to solve puzzlesI use the following template to start solving puzzles, see my examples inmy repo for 2023.fromadventofcodeimportAoCdefpart1(inp):returnNonedefpart2(inp):returnNoneaoc=AoC(part_1=part1,part_2=part2)inp="""sample input"""# Run your part1 function with sample input and assert the expected result:aoc.assert_p1(inp,42)# Run your part1 function on puzzle input and submit the answer returned:aoc.submit_p1()# Run your part2 function with sample input and assert the expected result:aoc.assert_p2(inp,6*7)# Run your part2 function on puzzle input and submit the answer returned:aoc.submit_p2()[!NOTE]
All submissions and fetched results are cached locally in the.cache.dbfile so that we don't spam the AoC servers or resubmit the same answer multiple times.Or build your workflow using the AoC classfromadventofcodeimportAoCaoc=AoC()# defaults to current year and parses the day from the filename (e.g. 01.py will be day 1)aoc.print_p1()# prints the first part of the puzzleinp=aoc.get_input()# returns the input as a string# solve the puzzle here...aoc.submit_p1('part 1 answer')# submits the answer to the first part of the puzzleaoc.print_p2()# prints the second part of the puzzle# solve the puzzle here...aoc.submit_p2('part 2 answer')# submits the answer to the second part of the puzzle
Package: advent-of-code
advent-of-code-pythonSolutions toAdvent of Codeimplemented in Rust and exposed to Python usingPyO3.Usage as a libraryAdd dependency:pipinstall--upgradeadvent-of-codeTheadvent_of_codepackage exports a singlesolvefunction with the following signature:defsolve(year:int,day:int,part:int,input:str)->strExamples:fromadvent_of_codeimportsolveassertsolve(2019,1,1,"14")=="2"assertsolve(2019,3,2,"R8,U5,L5,D3\nU7,R6,D4,L4")=="30"Usage as a command line tool$pipinstall--upgradeadvent-of-code
$echo14|advent-of-code-py2019112
Package: advent-of-code-helpers
Advent of Code helper functionsfromaoc.helpersimportoutput,read_input_from_file,input_linesfromaocimporttemplateSetup GuideInstall with pippipinstalladvent-of-code-helpersHelper Usageread_input_from_filereads the data as a single line from a filefromaoc.helpersimportread_input_from_fileread_input_from_file('path/to/input_data')input_linesreturns a list of strings from the string inputfromaoc.helpersimportinput_linesinput_lines('single\nstring\ninput')outputprints the result to console and writes to an output file if
an output directory is providedfromaoc.helpersimportoutputoutput('result',part(int),day(int),year(int),output_dir(str),file_prefix(str))Template UsageYou can specify data from a file using thedata(input)function.You can specify an output directory for output using theoutput(output)function.  If left empty, it will still print to screen, but will not write
the result to a file.  If given an output directory, the results will be
appended to the file so you can easily go back and look at previous results.ExamplesfromaocimporttemplateclassPart1(template.Part1):defsolve(self):# Read inputlines=input_lines(self.input())# Do some work here# Sample outputresult=','.join(lines)returnresultdefmain():output_dir='../out'test_data=os.path.join(os.path.dirname(__file__),'resources/test_input.txt')Part1(1,2018).data(test_data).output(output_dir)data=os.path.join(os.path.dirname(__file__),'resources/input.txt')Part1(1,2018).data(data).output(output_dir)if__name__=="__main__":main()More usage in theexample.Template Usage with Other LibrariesIf you want to use your own input reader or a library likeadvent-of-code-data,
you can override theinputmethod.Examplesfromaocimporttemplatefromaoc.helpersimportinput_linesfromaocdimportget_dataclassPart1(template.Part1):definput(self):ifself.input_file:returnsuper().input()else:returnget_data(day=self.day,year=self.year)defsolve(self):# Read inputlines=input_lines(self.input())# Do some work here# Sample outputresult=','.join(lines)returnresultdefmain():Part1(1,2018).output('../out')if__name__=="__main__":main()
Package: advent-of-code-hhoppe
Moduleadvent_of_code_hhoppePython library to process Advent-of-Code puzzles in a Jupyter notebook.
Seea complete example.Usage summary:Thepreambleoptionally specifies reference inputs and answers for the puzzles:BASE_URL = 'https://github.com/hhoppe/advent_of_code_2021/blob/main/data/google.Hugues_Hoppe.965276/'
  INPUT_URL = BASE_URL + '2021_{day:02}_input.txt'
  ANSWER_URL = BASE_URL + '2021_{day:02}{part_letter}_answer.txt'
  advent = advent_of_code_hhoppe.Advent(
      year=2021, input_url=INPUT_URL, answer_url=ANSWER_URL)Foreach day(numbered 1..25), the first notebook cell defines apuzzleobject:puzzle = advent.puzzle(day=1)The puzzle input string is automatically read into the attributepuzzle.input.
This input string is unique to each Advent participant.For each of the two puzzle parts, a function (e.g.process1) takes an input string and returns a string or integer answer.
Using calls like the following, we time the execution of each function and verify the answers:puzzle.verify(part=1, func=process1)
  puzzle.verify(part=2, func=process2)At the end of the notebook, a table summarizestimingresults.Alternative ways to specify puzzle inputs/answersThe puzzle inputs and answers can be more efficiently downloaded using a single ZIP file:PROFILE = 'google.Hugues_Hoppe.965276'
  ZIP_URL = f'https://github.com/hhoppe/advent_of_code_2021/raw/main/data/{PROFILE}.zip'
  !if [[ ! -d {PROFILE} ]]; then wget -q {ZIP_URL} && unzip -q {PROFILE}; fi
  INPUT_URL = f'{PROFILE}/{{year}}_{{day:02d}}_input.txt'
  ANSWER_URL = f'{PROFILE}/{{year}}_{{day:02d}}{{part_letter}}_answer.txt'
  advent = advent_of_code_hhoppe.Advent(
      year=2021, input_url=INPUT_URL, answer_url=ANSWER_URL)The puzzle inputs and answers can be obtained  directly from adventofcode.com using a web-browser session cookie and theadvent-of-code-dataPyPI package:!pip install -q advent-of-code-data
  import aocd
  # Fill-in the session cookie in the following:
  mkdir -p ~/.config/aocd && echo 53616... >~/.config/aocd/token
  advent = advent_of_code_hhoppe.Advent(year=2021)
Package: adventofcode-initializer
Advent of Code InitializerThis utility allows downloadingAdvent of Codeproblems as markdown files. It also
downloads the problems' inputs. This tool creates a folder for the required problem and stores the markdown
and the input files.UsageThe utility has two main options (set-session-cookieanddownload).usage: adventofcode_initializer [-h] {download,set-session-cookie} ...

Download Advent of Code problems as markdown files and also its inputs

positional arguments:
  {download,set-session-cookie}
    download            Download files
    set-session-cookie  Set the necessary cookie to download personal inputs
                        or ploblems' part 2

options:
  -h, --help            show this help message and exit

In order to download inputs or part 2, you have to set the 'session' cookie.Setting the correspondig cookie the user will be able to download custom inputs and new problem parts.usage: adventofcode_initializer set-session-cookie [-h] session-cookie

positional arguments:
  session-cookie  Cookie required to download inputs or problems' part 2

options:
  -h, --help      show this help message and exit

You only have to do save it onceBy default, the utility downloads the first part of the problem. In addition, part two can be appended to the README file.The utility can also download previous editions or already completed days.usage: adventofcode_initializer download [-h] [-a] [-d [1-25]] [-y YEAR]
                                            [--both-parts] [--part-2]

options:
  -h, --help            show this help message and exit
  -a, --all-days        Download all problems from a given year
  -d [1-25], --day [1-25]
                        The problem that is going to be downloaded
  -y YEAR, --year YEAR  Advent of Code edition
  --both-parts          Download both parts of the problem and its input (if
                        it is possible)
  --part-2              Download part two for the given problem and its input
                        (if it is possible). It appends to part one's README
                        if it existsInstallationPip:pipinstalladventofcode-initializerBuild from source:gitclonehttps://github.com/Serms1999/advent-initializer.gitcdadvent-initializer
pipinstall.
Package: advent-of-code-ocr
Advent of Code® OCRThis Python module helps with convertingAdvent of CodeASCII art letters into plain characters. At the moment, it only supports 6-pixel-tall characters as seen in 2016 Day 8, 2019 Days 8 and 11, and 2021 Day 13.Support for 10-pixel-tall characters (2018 Day 10) is coming soon.Put simply, it converts this toABC:██  ███   ██
█  █ █  █ █  █
█  █ ███  █
████ █  █ █
█  █ █  █ █  █
█  █ ███   ██InstallationThis module can be installed from PyPI:$pipinstalladvent-of-code-ocrUsageUsing this module is pretty easy. By default, this module recognizes#as a filled pixel and.as an empty pixel. However, you can change this using thefill_pixelandempty_pixelkeywork arguments respectively.fromadvent_of_code_ocrimportconvert_6print(convert_6(".##.\n#..#\n#..#\n####\n#..#\n#..#"))# Aprint(convert_6(" $$\n$  $\n$  $\n$$$$\n$  $\n$  $",fill_pixel="$",empty_pixel=" "))# AYou can also convert data that you have in a NumPy array or a nested list:fromadvent_of_code_ocrimportconvert_array_6array=[[0,1,1,0,0,0,1,1,0,0,0,1,1,0],[1,0,0,1,0,1,0,0,1,0,1,0,0,1],[1,0,0,1,0,1,0,0,1,0,1,0,0,0],[1,1,1,1,0,1,0,0,1,0,1,0,0,0],[1,0,0,1,0,1,0,0,1,0,1,0,0,1],[1,0,0,1,0,0,1,1,0,0,0,1,1,0],]print(convert_array_6(array,fill_pixel=1,empty_pixel=0))# AOCAdvent of Code is a registered trademark of Eric K Wastl in the United States.
Package: advent-of-code-py
Advent-of-code-pyAdvent of Codehelper CLI and library for python projects.Status & Info:Code styleLicenseProject VersionUsageInstallationTo install advent-of-code-py run following command which installs advent-of-code-py CLI and advent_of_code_py library.pipinstalladvent-of-code-pyORpoetryaddadvent-of-code-pyUsageInitially for advent-of-code-py to work it need session value or session ID which you can obtain by viewing cookie while visiting advent of code server.
After collecting session cookie value you need to add those values in config using advent-of-code-py CLIadvent-of-code-pyconfigadd<session-name><session-value>Now you can import library by usingimportadvent_of_code_pyAfter importing a library you can use either two decorator present which are solve and submit decorator for a function of puzzleFor example:-@advent_of_code_py.submit(2018,3,1,session_list="<session-name>")defpuzzle_2018_3_1(input=None):# do some calculation with data and return final outputreturnfinal_outputNow after decorating function now you can call function like regular function callpuzzle_2018_3_1()After calling functionfinal_outputvalue will be submitted by library to Advent of Code server for 2018 year day 3
problem, then returns whether the submitted answer was correct or not. If session value is not provided then
the solution will be submitted to all session value present in config file.You can also use advent-of-code-py builtin Initializer and runner to create appropriate CLI for problem so
problem can be run from CLI instead of modifying python file every time to run appropriate function
To set advent-of-code-py puzzle as CLI@advent_of_code_py.advent_runner()defmain_cli():initializer=advent_of_code_py.Initializer()initializer.add(<function_alias>=<function>)# for example to run above function you can writeinitializer.add(p_3_1=puzzle_2018_3_1)# add other functions ...returninitializerNow you can set main_cli as entry points, and it will create CLI with the appropriate name and function which was added.
So for example to run function puzzle_2018_3_1() you have to run command asentry-point-name run p_3_1which
will run the appropriate function as well as submit as desired if the function was decorated by submit decorator or else
prints its output if the function was decorated by solve decorator.