Saravanan666/pypi-org huggingface dataset:
Package: basic-return
basic-returnManage function returns with a generic classGetting startedYou cangetbasic-returnfrom PyPI,
which means it's easily installable withpip:python-mpipinstallbasic-returnExample usagefrombasic_return.BasicReturnimportBasicReturndeffunction(a,b,c=30,d=50):br=BasicReturn()ifa<10:br.status=10br.message="param a is less than 10"br.payload={"something":123456789}returnbrifb>20:br.status=-10br.message="param b is bigger than 20"returnbrbr.status=20br.message="param a is less than 10"returnbrbr=function(10,20,d=40)ifbr.status<0:print(br.owner_call)# function(a=10, b=20, c=30, d=40); this is how the function was called so we can replicate the errorraiseException(f"Something bad happens: [{br.status}] -{br.message}")ChangelogRefer to theCHANGELOG.mdfile.
Package: basicscore
Basic ScoreHow basic is that file?Measure how unsurprising text is by asking an LLM, unsurprising is roughly the
double negation of probable, and large language models just predict the next
token.By feeding the text through an LLM and inspecting the token probabilities for
theknownnext character basic score generates the probabilities for all
tokens in your text.Why would you want to do that?While I don't think this is sufficient, the main idea is to give a third party
opinion for code. I'm currently working on evaluating the idea by comparing
relative scores with third party code bases and adding noise to them.Once the evaluation setup is good I'll implement a RAG loop to create better
contexts, to see if I can get code convention violations to penalize the score.Besides that this can potentially detect LLM generated output.InstallationFor CPU inference it's easy:pip install basicscoreFor GPU inference you must force reinstallllama-cpp-pythonfor example:CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python --force-reinstall --upgrade --no-cache-dirUsageTypical usage:basicscore --model model.gguf --gpu-layers 50 --html-out=basicscore_file.html file.pyHowever you use a config-file, passed as argument, in$CWD/.basicscore.jsonor
in$HOME/.config/basicscore/config.jsonin falling precedence. There you can
specify all the options for ease of use.To run it like this:basicscore file.pyWhy didn't you use tinygrad?I tried at first but I could not get acceptable performance on my hardware and
for this to be possible to evaluate I needed to squeeze out more toks/s than
what I could. A lot has happened since I started this project and I'll likely
revisit it later.
Package: basicserial
ContentsOverviewUsageLicenseOverviewDoes this look familiar?>>> import json
>>> from datetime import date
>>> MY_DATA = {'foo': 123, 'bar': date(2018, 5, 22)}
>>> json.dumps(MY_DATA)
Traceback (most recent call last):
    ...
TypeError: datetime.date(2018, 5, 22) is not JSON serializableIt’s one thing when your serialization tools don’t know how to handle your
custom classes, but it’s annoying when they don’t handle the built-in and/or
common data types. Thus,basicserialwas born.This package is a thin wrapper around the common serialization tools that can
do the following for you when working with JSON, YAML, and TOML:Automatically serializes the following types to common-sense representations:TypeJSONYAMLTOMLsetarraysequencearrayfrozensetarraysequencearrayDecimalnumberfloatfloatFractionstringstringstringdatestring (ISO 8601)timestampstring (ISO 8601)timestring (ISO 8601)string (ISO 8601)string (ISO 8601)datetimestring (ISO 8601)timestampstring (ISO 8601)complexstringstringstringOrderedDictobjectmapkey/valuedefaultdictobjectmapkey/valuenamedtupleobjectmapkey/valueUserDictobjectmapkey/valueUserListarraysequencearrayUserStringstringstringstringUUIDstringstringstringCan serializeEnummembers
appropriately based on their type.Can automatically deserialize dates, times, and datetimes into the native
Python objects.Provides a simple flag for generating “pretty” strings.UsageTo use this package, install it from PyPI (pip install basicserial). Then,
make sure you install the serialization package you’d likebasicserialto
use:For YAML, it supportsPyYAMLandruamel.yaml.For TOML, it supportstoml,pytoml,qtoml,tomlkit, andtomli/tomli-w.For JSON, it supports Python’s built-injsonmodule,simplejson,orjson,rapidjson,ujson,hyperjson, andpysimdjson.basicserialwill automatically find a package to use, but if you want to
use a specific one, you can specify its name via thepkgargument to the
functions.JSON:>>> print(basicserial.to_json(MY_DATA))
{"foo": 123, "bar": "2018-05-22"}

>>> print(basicserial.to_json(MY_DATA, pretty=True))
{
  "foo": 123,
  "bar": "2018-05-22"
}

>>> basicserial.from_json(basicserial.to_json(MY_DATA))
{u'foo': 123, u'bar': datetime.date(2018, 5, 22)}

>>> basicserial.from_json(basicserial.to_json(MY_DATA), native_datetimes=False)
{u'foo': 123, u'bar': u'2018-05-22'}YAML:>>> print(basicserial.to_yaml(MY_DATA))
{bar: 2018-05-22, foo: 123}

>>> print(basicserial.to_yaml(MY_DATA, pretty=True))
bar: 2018-05-22
foo: 123

>>> basicserial.from_yaml(basicserial.to_yaml(MY_DATA))
{u'foo': 123, u'bar': datetime.date(2018, 5, 22)}

>>> basicserial.from_yaml(basicserial.to_yaml(MY_DATA), native_datetimes=False)
{'foo': 123, 'bar': u'2018-05-22'}TOML:>>> print(basicserial.to_toml(MY_DATA))
foo = 123
bar = "2018-05-22"

>>> print(basicserial.to_toml(MY_DATA, pretty=True))
foo = 123
bar = "2018-05-22"

>>> basicserial.from_toml(basicserial.to_toml(MY_DATA))
{u'foo': 123, u'bar': datetime.date(2018, 5, 22)}

>>> basicserial.from_toml(basicserial.to_toml(MY_DATA), native_datetimes=False)
{u'foo': 123, u'bar': u'2018-05-22'}LicenseThis project is released under the terms of theMIT License.
Package: basic-sftp
Basic SFTPThis projects creates a basic sftp connection that allows you to send any document to a digital
ocean server that I have set up. To install this project simply ~pip install basic-sftp~ It will install everything needed to run
the program. Once install you can use SFTP to transfer any file to any server if you have the correct
credentials.FeaturesSFTP file transferCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History1.3.4 (2020-05-17)Updated the ssh_key prompt to not hide the input so you can see what file location you are using1.3.3 (2020-05-16)Added the ability to use ssh keys when creating the SFTP connection1.3.2 (2020-05-16)This package is now able to be pip installed. I am still working out how to use the SSH_KEY in the SFTP connection becauseI am still new to those.1.1.0 (2020-05-12)Still trying to figure out how to make the package work with a requirement of pysftp.1.0.0 (2020-05-11)First release on PyPI.
Package: basicsql
Basic SQLThis is a small package intended to help with basic operations such as select, insert, update, and upsert as well as executing raw SQL queries for different database types.Additional requirementsThe package is using SQLAlchemy and depending on what database you want to connect to the installation of additional packages is required. Below are the instructions for the databases that are currently supported:PostgreSQLpip install psycopg2MySQLpip install pymysqlSQL Server (MSSQL)pip install pyodbcOn Linux first follow theMicrosoft instructionsto install the required drivers.Oraclepip install cx_OracleOn Linux first follow theOracle instructionsto install the required drivers.
Package: basic-statistic-distributions
statistical DistributionsA statistical tool for solving basic statistic distributionsGaussian Distribution
Binoial DistributionBasic Usage>>> from statistical_distributions import Gaussian, Binomial

initiating new object of Gaussian Class
>>> Gaussian(4,10)
mean 4, standard deviation 10

initiating new object of Binomial Class
>>> Binomial(.4, 12)
mean 4.800000000000001, standard deviation 1.6970562748477143, p 0.4, n 12&copyusmanbinnaeem
Package: basicstruct
A simple struct-like object for Python.
Compatible with Python 2.6+, 3.x, pypy and pypy3.InstallationpipinstallbasicstructUsageTo create your own struct, inherit fromBasicStructand define the field with the__slots__class member.BasicStructare efficient objects that are automatically comparable, hashable, picklable, printable and reprable.frombasicstructimportBasicStructclassPoint(BasicStruct):__slots__=('x','y')p1=Point(2,3)p2=Point(1,y=6)p3=Point(x=0,y=0)print(p1)# prints: Point(x=2, y=3)
Package: basicsums
basicsusmsis a package for computing structural sums and the effective conductivity of random composites.Structural sums (also known as basic sums) are mathematical objects originating from the computational materials science, considered to form a set of geometric features of data represented by points or disks on the plane.See the structural sums overview, package description, tutorials, example usage and API reference onhttp://basicsums.bitbucket.ioDocumentationThe documentation forbasicsusmsis hosted onBitbucket.Requirementsbasicsusmsruns under Python 3 and is written in pure Python. The package requires following scientific packages:numpy,matplotlib, andsympy.A basic familiarity with Python is required.InstallationReleases are hosted on PyPI, hence the easiest way to getbasicsusmsis to install it with pip:pipinstallbasicsumsYou can also download therepository.Once installed the package can be tested by running:frombasicsums.testsimporttesttest.run()Functiontest.run()executes all doctests included in package’s docstrings as well as in test files residing in thetestssubmodule.LicenseCopyright (c) 2017-2019, Wojciech Nawalaniecbasicsusmsis an open source software made available under the New BSD License. For details see theLICENSE. file.
Package: basicsynbio
basicsynbioAn open-source Python package to facilitate BASIC DNA assembly workflows. Also available as aweb-app!InstallationUsing a python environment running python version >= 3.8:$pipinstallbasicsynbioUsageRefer to thesection of the documentation of usage.ContributingRefer to thesection of the documentation on contributing.MetaThis project is licensed under the BSD 3-Clause License - see theLICENSEfile for details
Package: basictdf
A read/write binary parser for the BTS Bioengineering TDF data format.InstallationpipinstallbasictdfUsageRead the documentationhere.DevelopmentFirst clone the repo:gitclonehttps://github.com/marnunez/basictdf.gitcdbasictdfBasictdf uses poetry for dependency management. To install poetry, run:pipinstallpoetryTo install the dependencies, run:poetryinstall--withdev
Package: basicthainlp
เครื่องมือ NLP สำหรับภาษาไทยincludeToken Identification: ระบุชนิด Token ข้อความภาษาไทยPmSeg: หาขอบเขตของ pseudo morphemePos tagging: Tag part of speech(pos) ระดับ pseudo morphemeSpelling corrector: แก้ไขคำผิดColabhttps://drive.google.com/file/d/1G7OUNsCC-B5XHNd8V5Et1ZKpJp4R66hg/view?usp=drive_linkUpdate0.4.2แก้ bug TokenIdentification: E-mil regular expression0.4.1แก้ bug TokenIdentification: Tag จากไฟล์ให้ถูกต้องมากขึ้น0.3.7แก้ correction ใน spelling ในกรณีที่ค่า prop เท่ากันให้พิจารณาโดยใช้ Tri-gram0.3.5เพิ่ม library spelling0.3.4แก้ function get_ps แบบสั้น ไม่ต้องใส่ textInput=0.3.3แก้ function get_ps ไม่ให้ new class ทุกครั้งหลังจาก new class PmSeg() ต้องเรียกฟังก์ชั่น init_cls() เสมอหลังจาก new class PosTag() ต้องเรียกฟังก์ชั่น init_cls() เสมอ0.3.1เพิ่ม library POS Tagging0.2.7Add wrap function get_ps0.2.1เพิ่ม library Token Identification
Package: basic-timehelper
TIMEHELPERA collection of convenience methods to handle frequent time-related patterns in a more intuitive and explicit wayTo use the library, just import it and start using its methods:import timehelper

>>>timehelper.today_in_cet()
'datetime.datetime(2021, 5, 30, 0, 0, tzinfo=<DstTzInfo 'CET' CEST+2:00:00 DST>)'
>>>timehelper.get_current_time_utc()
'datetime.datetime(2021, 5, 30, 13, 24, 4, 435579, tzinfo=<UTC>)'
Package: basicTools
Basic ToolsA Module to do some problems like email validations , displaying pyramids probelms ...Installationpip install basicToolsHow to use itInstall the module ,import it and use it (eg. basicTools.is_validEmail(email)).checkout the gitHub page for more information of methods in this module.LicenseCopyright 2021 JenifarThis repository is licensed under the MIT license.
See LICENSE for details
Package: basictwitternlp
Basic Twitter NLPDescription: Simple set of comands to work with twitter and text sediment analysisNEEDED: Twitter Developer account for bearer tokenTwitter DeveloperGetting StartedBuild Database to Store tweets and analysis. It will create the 5 tables needed for the processdb_init(con)Add Querys. It takes any query that is allowed by your Twitter api acesses.Twitter Query Help Guideadd_query(twitter_query,con)Run Process. This will run the scrape and NLP process and store them in the tablesrun_tw_nlp(con,client,query=None,inc_rt=False)con : SQLite3 connectioncon = sqlite3.connection('DATABASE_NAME.db')client : twitter bearer tokenclient =  tweepy.Client(bearer_token='bearer')query : query index number which can be found in the "query_idx" column in the queries tableinc_rt : to include retweets in text analysis
Package: basic-type-operations
MIT LicenseCopyright (c) [year] [fullname]Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.更多方法请看模块，或者联系作者一起探讨。
Package: basic-utils
Basic utilsUseful utilities for Python 3.4+DocumentationSee what’s available by reading the docshereInstallationInstall through PyPi with the following:pip3 install basic-utilsFAQQ: Does anyone use this?A: Not that I know ofQ: Should I use this?A: Sure (but at your own risk)Q: Why doesn’t this have X?A: Open an issue or submit a pull requestSimilar ProjectsToolzUnderScoreJSRunning Tests(Optional) Create a virtualenv:python3-mvenvvenvActivate the virtualenvvenv/bin/activateInstall requirementspipinstall-e."[test]"Install requirements and run:pytestTo get test coverage:scripts/test
Package: basicweb
===========basicweb===========It lauches a basic web server, provides a login page, validates the credenatilas fron sqlite DB and maintains cookies.-----------Useful for basic reporting of confidential data. It is a scalable application which launches more number of threads as per the requirement.Pre-requisite============* sqlite DB knowledge* Basic HTML, CSS* Baisc HTTP protocolExecution & Output-------------------arjun$ python web.py('Started httpserver on port ', 8080)192.168.2.1 - - [16/Jul/2017 15:14:14] "GET / HTTP/1.1" 200 -Filename: web.py192.168.2.1 - - [16/Jul/2017 15:15:06] "GET /css/table.css HTTP/1.1" 200 -192.168.2.1 - - [16/Jul/2017 15:15:06] "GET /js/table.js HTTP/1.1" 200 -
Package: basic-web-scraper
Basic Web ScraperProject DescriptionThis package can be used for simple automated web surfing / scraping.Create classes inheriting the included BasicSpider class to create custom behavior to suit your requirements.Usage Examplefrombasic_web_scraper.BasicSpiderimportBasicSpiderclassCustomSpider(BasicSpider):def__init__(self,*args,**kwargs):super().__init__(*args,**kwargs)defcustom_operation(self,threshold):"""Scroll to predefined threshold.If past threshold, scroll back up."""ifself.get_page_y_offset()<threshold:self.mousewheel_vscroll(number_of_scrolls=2)else:y_difference=self.get_page_y_offset()-thresholdself.smooth_vscroll_up_by(y_difference)More DescriptionDriverIn order for the package to work, you must include ageckodriver.exein your local project directory. Otherwise aGeckoNotFoundExceptionwill be raisedNote: This package currently only supports working with The Firefox geckodriver, which can be downloaded fromhereBasicSpider.pyUse this as the superclass for your own project's spiderThis Spider allows you to do basic things like goto a url, scroll down the page in different ways, refresh the page, etc..It acts as an interface toselenium.webdriverto make setting up a project easierMore docs will be added in the future.
Package: basic-wrangler
BASIC WranglerPurposeThe purpose of BASIC Wrangler is to allow you to write BASIC programs using labels in a dialect-agnostic way. It also combines and crunches lines to take up the least amount of space on output, thus saving you memory. It is designed to be able to work with almost any dialect of line numbered BASIC.InstallationTo install with pip, type:pip install basic-wranglerBasic UsageTo load the GUI, typebw(a harmless console window might open up behind the main window -- ignore it). Typebw -hfor CLI help. For more, downloadthe PDF Manual zip file at the release page.Getting SupportIf you have any issues, you can either report them atthe GitHub Issues Trackeror you can report them atthe AtariAge Release thread. There might also be useful information atmy blog.AttributionProgram icon based on an icon made byRetinaiconsfromwww.flaticon.com.
Package: basil
Basil follows best practice to create a new python project in the current
directory from a given template. Basil also supports removing projects and
performing additional actions that are specific to templates.Basil is intended to set up python projects for many different frameworks (via
its template system), and to work on many different platforms and
distributions.Currently, Basil has only been tested on Ubuntu 13.10.FeaturesInstalls required packages and pip packages.Creates a new virtualenv with virtualenvwrapper, and installs pip packages in it.Creates a project directory.Sets up virtualenv environment variables.Creates a git repo for source control.Handles destroying projects.Allows templates to provide additional actions to be performed on projects.UsageSee: ‘basil -h’Thanks also toGrant Paton-Simpson for help with design and architecture.LicensingBasil: Build A System Instant-Like
Copyright (C) 2014 Catalyst IT LtdThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero 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 Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
Package: basil_django
Basil template to set up a best-practice Django development project.LicensingBasil Django: Basil Template for standard Django projects.
Copyright (C) 2014 Catalyst IT LtdThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero 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 Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
Package: basilisp
🐍 basilisp 🐍A Clojure-compatible(-ish) Lisp dialect targeting Python 3.8+.Getting StartedBasilisp is developed onGitHuband
hosted onPyPI. You can fetch Basilisp
usingpip:pipinstallbasilispOnce Basilisp is installed, you can enter into the REPL using:basilispreplBasilispdocumentationcan help guide your
exploration at the REPL. Additionally, Basilisp features many of the same functions
and idioms asClojure, so you may find guides and
documentation there helpful for getting started.Why does this project exist?Basilisp is a project I (@chrisrink10) created to learn about Python, Clojure,
hosted  languages, and compilers.That said, it is generally stable at this point with reasonably high test
coverage, linting, and type checking. Work is ongoing to complete the rest of
standard the library implementations. I suspect it could be used to build small
applications and tools at this point, though I would not recommend it unless you
like being a very early adopter.Use in a production setting at your own risk.LicenseEclipse Public License 1.0
Package: basilpy
# basilpy ![alt text](https://github.com/giacomodamico24/basilpy/blob/main/basilpy.png)basilpyis a Python package for estimating the signal from an ON/OFF measurement using the BASiL approach [ arXiv:2105.01019 ]You can check the theory behind BASiL herehttps://journals.aps.org/prd/abstract/10.1103/PhysRevD.103.123001Some tutorials on how to usebasilpycan be found in thenotebooks/folderPrerequisitesPython 3.6 or higher and the following packagesnumpyscipympmathInstallationYou can use pip to install the package:pip install basilpyLicenseThis project is licensed under a GNU General Public License v3.0 - see theLICENSEfile.
Package: basil-suite
BasilBenchmarking And Statistical Inspection Library⚠️ This library is still in development. Breaking changes may occur at any time.InstallUsepipto install the package:pipinstallbasil-benchmarkExampleDefine a benchmark to solve, a solver and the instances, which are made of a
pair of a benchmark and a solver.fromtimeimporttimeimportjaximportnumpyasnpfromjaximportnumpyasjnpfrombasilimportBenchmark,Solver,parametrize,register_benchmarkclassSimpleBenchmark(Benchmark):# Define the benchmarkdef__init__(self,N):self.N=N@propertydefparameters(self):return{"num_values":self.N}@propertydefinputs(self):matrix=np.random.rand(self.N,self.N)ref_value=np.sum(matrix)return{"inputs":{"matrix":matrix},'aux':ref_value}defevaluate(self,outputs,ref_value):return{"error":abs(outputs["result"]-ref_value),"execution_time":outputs["execution_time"]}classJaxSolver(Solver):# Define benchmark solverdefrun(self,inputs):func=jax.jit(lambdax:jnp.sum(x))# Compile the functionmock_inputs=jnp.ones_like(inputs["matrix"])_=func(mock_inputs)# Run the functionx=jnp.asarray(inputs["matrix"])start=time()result=func(x).block_until_ready()execution_time=time()-startreturn{"result":float(result),"execution_time":execution_time}# Define the benchmark instances@register_benchmark@parametrize("N",[100,1000])defsum_test(N:int):return{"benchmark":SimpleBenchmark(N),"solver":JaxSolver()}After saving this in a file that follows the patternbenchmark_*.pyinto someBENCHMARKS_PATHsubfolder, invokebasilto run the benchmark instances.basilBENCHMARKS_PATHIt should print something like this:Adding simple_benchmark with jax_solver to register
Adding simple_benchmark with jax_solver to register
Running all 2 runs
Benchmark: simple_benchmark
Results: {'system_info': {'OS': 'Linux', 'OS_version': '#1 SMP Fri Jan 27 02:56:13 UTC 2023', 'CPU': 'x86_64', 'RAM': 16714588160, 'GPU': 'No GPU info'}, 'solver': 'jax_solver', 'options': {}, 'parameters': {'num_values': 100}, 'results': {'error': 0.0001370069894619519, 'execution_time': 0.00036644935607910156}}

Benchmark: simple_benchmark
Results: {'system_info': {'OS': 'Linux', 'OS_version': '#1 SMP Fri Jan 27 02:56:13 UTC 2023', 'CPU': 'x86_64', 'RAM': 16714588160, 'GPU': 'No GPU info'}, 'solver': 'jax_solver', 'options': {}, 'parameters': {'num_values': 1000}, 'results': {'error': 0.025644428096711636, 'execution_time': 0.0019795894622802734}}

All runs finishedThe results are also saved in a json file, with the same name as the benchmark (in this case, it would besimple_benchmark.json).Visualize resultsA prototype visualization viastreamlitis provided, but it is not yet complete. To preview it in development mode, usestreamlitrunsrc/basil/_dashboard.py----folderRESULTS_FOLDER