Saravanan666/pypi-org huggingface dataset:
Package: baseclasses
baseclassesSimple dataclasses alternative (beta)Installationbaseclassesis available onPyPI:pipinstallbaseclassesQuick Startbaseclassesis an alternative todataclasses.There are many such alternatives, and there are a lot of reasons
to use them (including the built-indataclasses), but if you want a library with:No monkey-patched methods generated from stringsNo special decorators, just regular inheritanceAbility to order fields in subclasses as desiredAuto-inheritance of parent properties, with ability to change per subclassEmphasis on keyword args over positional argsOptional__pre_init__ability to mutate kwargsOptional ability to reference other kwargs indefault_factoryfuncA shorthand helper to specifyInternalStateFieldAbility to differentiate betweenstrandrepryou can givebaseclassesa try. E.g.:fromtypingimportDict,Optionalimportbaseclasses# No decoratorclassFoo(baseclasses.FrozenBaseClass):a:intb:intc:Optional[str]=baseclasses.Field(default="hello",hash=False)_d:Dict=baseclasses.InternalStateField(default_factory=dict)# Auto-inherits FrozenBaseClass propertiesclassChildFoo(Foo):# No problems with child class field orderingx:float# Dynamic defaultsy:int=baseclasses.Field(default_factory=lambda**kwargs:kwargs["a"]*2.0)# Override frozen state per child classclassMutableChildFoo(ChildFoo,frozen=False):passComparisons to AlternativesSeetests/test_compare.py.Likedataclasses, but:No issues with adding new optional fields because you're forced to
usekwargsin all but the simplest casesUsesmetaclassand simple inheritance over monkey-patched generated codeChild classes automatically inherit state from parent,
so no need to re-declareBut you can also changefrozenstatus per child classYou can usedefault_factory(lambda **kwargs: ...)to access init fieldsOr you can mutate kwargs with an optional__pre_init__More consistent with traditional OOP style
(e.g.,obj.get_fields()instead ofdataclasses.get_fields(obj))Likedataclassybut:Usesmetaclassand simple inheritance over monkey-patched generated codeThere are others:attrspydantictraitletsparamNote: there areperfectly valid reasonsfor why the Python community
decided to use generated code over simple inheritance.baseclassesis just an alternative that implements things differently.TODOAddinitproperty to field (to mirrordataclasses)Exposeobj.replace(**kwargs)(to mirrordataclasses)Considerserializeproperty to fieldTake advantage ofPEP 681 included in Python 3.11
Package: basecmd
basecmdBoilerplate for the command line.Classes inheriting fromBaseCmdhave aself.logattribute
that is a standard Python logger. A basic logging configuration tosys.stdoutis provided.For command line options controlling the logging verbosity
and output to a log file, call the command with-hor--help.Defaults for logging options can be also provided as environment variables
or in a.emvfile:LOG_LEVEL: the logging verbosity, one oferror,warn,info, ordebug; default:info.
'LOG_FILE: path to a log file, defaults to the standard output for easy redirection.LOG_FORMAT: a standard Python logging format, defaults to%(asctime).19s  %(message)swhen logging to a file or a terminal and%(message)sotherwise.When logging to a terminal, the output is colored by log level.Example usagefrombasecmdimportBaseCmdclassMyCmd(BaseCmd):defadd_arguments(self):self.parser.add_argument('--foo',help='Custom command line option')def__call__(self):self.log.debug(self.options.foo)if__name__=='__main__':cmd=MyCmdcmd()
Package: basecolors
python 控制台文本的基本色介绍：为你的 python 脚本在控制台的输出上个色！0.1.0版本支持win 和linux跟 0.0.2 版本不同，由于考虑兼容性，0.1.0 版本之后会直接打印文本，不会返回包装后的文本！务必注意win平台只打印文本颜色，背景色和显示效果（闪烁等）暂时无效果简要使用说明：安装：$ pip install basecolors终端命令：$ colorit [-t --text [-fc --front_color] [-bc --back_color] [-md --show_mode]] [-a --show_all [-ne --show_all_but_no_effect]]  
  
# 显示帮助：  
$ colorit -h参数解释：-t --text需要上色的文本-fc --front_color字体颜色-bc --back_color背景色-md --show_mode显示模式，加深、闪烁、下划线等-a --show_all显示所有颜色名称和代号-ne --show_all_but_no_effect配合 -a 参数，显示颜色名称和代号但不展示效果终端示例：# 显示红色字样  
$ colorit -fc red  
  
# 显示红色加粗字样  
$ colorit -t 测试文本 -fc red -md highlight  
  
# 显示黄色下划线字样  
$ colorit -fc yellow -md underline  
   
# 显示蓝色闪烁字样  
$ colorit -fc blue -md blinking  
  
# 如果不确定颜色或显示模式的名称，可以输入 colorit -a -ne 或者 colorit -a 查看代码中调用：from BaseColor.base_colors import *  
  
# 0.0.1 版本（只支持 linux）：  
print(red("测试文本"))  # 普通红色  
print(hred("测试文本"))  # 加粗红色  
  
# 0.1.0 版本（新版，支持 win 和 linux）：    
red("测试文本")  
  
# ============ linux 效果 ===============  
# 其他颜色也有普通和加粗显示的区别，就是在前面多个 h，例如上面的 red 和 hred    
# 其他配合颜色的 show_mode 暂时没有编写  
  
# 自定义颜色效果组合：  
color("测试文本", show_mode="underline", back_color="cyan", front_color="red")  
  
# 效果可以叠加使用，例如同时加粗和闪烁：  
hred(color("测试文本", 'blinking'))
Package: base-common-drf
base-common-drfbase-common-drf is a Django app with common implementations for base Angewandte projects using Django REST Framework.Quick startInstall the package:pip install base-common-drfAddbase_common_drfto yourINSTALLED_APPSsetting like this:INSTALLED_APPS = [
    …,
    'base_common_drf',
]
Package: baseconfig
baseconfig is the configuration package which handles multiple sources, fallback from one source to another, and internal validation of the values.Thedetailed documentation of this packageis available on the source website.ContributingThesource codeis also available. The package is distributed underMIT License.If you want to have SVN access to the official repository in order to contribute to the project, contact me atarseni.mourzenko@pelicandd.com. If you find it more convinient to clone the source to GitHub, you can do that too.
Package: base-conversion-kit
Base Conversion KitThe Base Conversion Kit is a Python package designed to simplify number operations across different bases. Whether you're working with binary, octal, decimal, or hexadecimal numbers, this package provides convenient functions for conversions and basic arithmetic operations.InstallationYou can install the Base Conversion Kit usingpip:pipinstallbase-conversion-kitUsageConverting NumbersThe package offers a flexible function for converting numbers from any base to another:frombase_conversion_kitimportconvert_to_base_n,convert_base# Convert a decimal number to binarybinary_result=convert_to_base_n(42,2)print(f"Binary representation:{binary_result}")# Convert a hexadecimal number to octaloctal_result=convert_base("1A",8,16)print(f"Octal representation:{octal_result}")Performing Arithmetic OperationsPerforming arithmetic operations on numbers from different bases is seamless:frombase_conversion_kitimportmultiply_numbers,add_numbers,subtract_numbers# Multiply two binary numbersresult_binary=multiply_numbers("101","110",2)print(f"Binary multiplication result:{result_binary}")# Add two decimal numbersresult_addition=add_numbers(15,7,10)print(f"Decimal addition result:{result_addition}")# Subtract two hexadecimal numbersresult_subtraction=subtract_numbers("1A","B",16)print(f"Hexadecimal subtraction result:{result_subtraction}")ExamplesExample 1: Adding Binary Numbersfrombase_conversion_kitimportadd_numbersresult=add_numbers("101","110",2)print(f"Binary addition result:{result}")Example 2: Converting and Addingfrombase_conversion_kitimportconvert_to_base_n,add_numbers# Convert decimal numbers to binary and addbinary_sum=add_numbers(convert_to_base_n(10,2),convert_to_base_n(5,2),2)print(f"Binary sum:{binary_sum}")Read The DocsMore info can be foundhereContributingFeel free to contribute to the development of the Base Conversion Kit. If you encounter issues, have suggestions, or want to add features, please submit a pull request or open an issue on theGitHub repository.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: baseconvert
Convert any rational number, from any (positive integer) base, to any
(positive integer) base. Output numbers as tuple or string.Any rational numberArbitrary precisionFractionsRecurring/repeating fractional digits.Input numbers as tuple or string or number.Output numbers as tuple or string.MIT License (MIT) Copyright (c) 2016 Joshua Deakingithubcontact@joshuadeakin.comRequiresPython 3Install / UninstallInstall:pip install baseconvertUninstall:pip uninstall baseconvertQuickstart# base(number, input_base, output_base)

>>> base((15, 15, 0, ".", 8), 16, 10)
(4, 0, 8, 0, '.', 5)

>>> base("FF0.8", 16, 10, string=True)
'4080.5'

>>> base("4080.5", 10, 16, string=True)
'FF0.8'Or from command line$ echo 4080.5 | python -m baseconvert -i 10 -o 16
FF0.8

$ python -m baseconvert -n 4080.5 -i 10 -o 16
FF0.8Tuple representationNumbers are represented as a sequence of digits. Each digit is a base-10
integer value. The radix point, which separates the integer and
fractional parts, is denoted by a string period.(int, int, int, ... , '.', ... , int, int, int)
(   integer part    , '.',  fractional part   )String representationString digits (after z the values are in ascending Unicode):0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz

|  Value  | Representation |
|---------|----------------|
|  0 -  9 |    0  -  9     |
| 10 - 53 |    A  -  Z     |
| 36 - 61 |    a  -  z     |
| 62 +    | unicode 123 +  |

For bases higher than 61 it's recommended to use tuple representation.Examples# base(number, input_base, output_base)
>>> n = (15,15,".",0,8)
>>> base(n, 16, 10)
(2, 5, 5, '.', 0, 3, 1, 2, 5)
>>> base(n, 16, 10, string=True)
'255.03125'

>>> base("FF.08", 16, 10) == base((15,15,".",0,8), 16, 10)
True

# A callable BaseConverter object can also be created.
# This is useful for when several numbers need to be converted.

>>> b = BaseConverter(input_base=16, output_base=8)
>>> b("FF")
(3, 7, 7)
>>> b((15, 15))
(3, 7, 7)
>>> b("FF") == b((15,15))
True

>>> base(0.1, 3, 10, string=True)
'0.[3]'Recurring digitsRecurring digits at the end of a fractional part will be enclosed by “[”
and “]” in both string and tuple representation. This behavior can be
turned off by setting the recurring argument of base or BaseConverter
object to False.>>> base("0.1", 3, 10, string=True)
'0.[3]'
>>> base("0.1", 3, 10, string=True, recurring=False)
'0.3333333333'Max fractional depthInteger parts are always of arbitrary size. Fractional depth (number of
digits) can must be specified by setting the max_depth argument of base
or a BaseConverter object (default 10).>>> base("0.2", 10, 8)
(0, '.', 1, 4, 6, 3, 1, 4, 6, 3, 1, 4)
>>> base("0.2", 10, 8, max_depth=1)
(0, '.', 1)
Package: base-convert-cli
DescriptionA CLI tool to convert numbers between bases, with as little typing as possible.$ bs FFFE
[from hexadecimal]
  decimal     65534
  binary      1111111111111110
  octal       177776
$ bs -t d F
15InstallationThis is a Python 3 script, installed fromPyPIusing pip.pip3 install base-convert-cliHasn't been tested on Windows.ExamplesIf you don't specify a base, it does all common conversions.$ bs 0
[from decimal]
  binary      0
  hexadecimal 0
  octal       0

[from binary]
<clipped output here>Specify the base through the prefix0bfor binary,0ofor octal,0dfor decimal and0xfor hex.$ bs 0xF
bs 0xF
[from hexadecimal]
  decimal     15
  binary      1111
  octal       17Specifying base through a flag.$ bs --from hex F
[from hexadecimal]
  decimal     15
  binary      1111
  octal       17From base-36 (the maximum supported base, which uses the digits 0-9 and then a-z).$ bs --from 36 zx1
[from base-36]
  decimal     46549
  binary      1011010111010101
  hexadecimal B5D5
  octal       132725To base-7.$ bs --to 7 54
[from decimal]
  base-7 105

[from hexadecimal]
  base-7 150

[from octal]
  base-7 62Specifying both input and output bases.$ bs --from hex --to dec F
15Shorthand for lazy people.$ bs -f h -t d F
15Padding with zeroes.$ bs --from decimal --to binary --pad 8 14
00001110Setting precision for converting fractional numbers.$ bs --prec 10 --from 3 --to decimal 0.1
0.3333333333Aaaaand input through a pipe.$ echo '5+10' | bc | bs -t h
[from decimal]
  hexadecimal F

[from octal]
  hexadecimal DContributingFeel free to submit tweaks. To run tests, install tox viapip3 install toxand then run thetoxcommand from the base directory.
Package: baseconvertpy
Base ChangeAn easy way to switch between bases in Python.UsageInstallpip install baseconvertpyImportimport baseconvertpyConverting basesbaseconvertpy.convert(<Number>, <New Base>, <Original Base (Default is 10)>, <Charset (Default is characters for up to base 62)>)Converting from base 10 to base Xbaseconvertpy.to_baseX(<Number in base 10>, <New Base>, <Charset (Default is characters for up to base 62)>)Converting from base X to base 10baseconvertpy.to_base10(<Number in base X>, <Original Base>, <Charset (Default is characters for up to base 62)>)
Package: basecore
BaseCoreBasecore is a simple repo that provides deep learning frame for MegEngine.FeaturesTODOInstallationpip installpip3installbasecoresource code installThis way of installation is recommanded for developers. Use the follwing commands to install BaseDet by source code.gitclonegit@github.com:megvii-research/basecore.gitcdbasecore
pip3install-v-e.DocumentTODO
Package: basecrawler
快速说明简介BaseCrawler是一个轻量级，简单快捷上手操作基础爬虫工具库，对于爬虫开发者，有很多实用的功能已经进行了优化与完善。
BaseCrawler帮你处理各种类型怪异的url拼接错误问题，以及各种不同格式的时间，有很多小功能帮你解决头疼的问题。
API说明文档请访问：http://www.basecrawler.com具体使用请查看文档
QQ交流群:662500882版本支持* Python 2.7.x
* Python 3.x
* 如python3发现Bug，请与我联系！安装说明PIP 安装

``pip install basecrawler``使用说明——方式一首先我们引入BaseCrawler ::

    from basecrawler import BaseCrawler

声明一个url地址， 例如: ::

    url = http://www.baidu.com

实例化一个BaseCrawler对象 ::

    basecrawler = BaseCrawler()

通过basecrawler请求目标url ::

    response = basecrawler.requests_get(url)

``response`` 是requests.Response对象，输出返回的结果内容 ::

    print response.text使用说明——方式二如果我们采用面创建类的方式实现，可以直接继承BaseCrawler::from basecrawler import BaseCrawler

class Crawler(BaseCrawler):

    # 定义你自己的类方法
    def foo():
        pass

if __name__ == "__main__":
    crawler = Crawler()
    url = http://www.baidu.com
    crawler.requests_get(url)支持反反爬* 目前完成基础反反爬处理, 根据反反爬策略可以选择不同的处理方式
* 常见反爬的东西，大家就不要再自己码代码了，这里我进行处理了！
*支持动态网页爬取* 支持处理JS加载数据处理, 同时完成对 Phantomjs 性能优化
* 想必大家在使用selenium中的PhantomsJS 时一定非常消耗性能哦，这里我已经完成性能优化，让它飞起来！支持代理* 支持 ``requests`` 及 ``phantomjs`` 代理
* requests的代理可能大部分小伙伴都会加（如果不会，我这里也有哦）
* PhantomJS不会使用代理的快来用吧！这里都给你做好了！支持翻页处理* 实现web网站翻页处理, 按API格式设置，可自动完成翻页处理支持自动获取免费代理* basecrawler内含获取代理IP方法，单次调用提供100个免费IP, 因验证ip会加大代理负载，IP不做验证处理，即时即用支持图片下载与替换* 支持将目标图片下载到OSS服务中支持自动修复iframe视频地址* HTML中存在iframe视频，不能正常播放的，已经完成处理。取消支持微信* 取消微信支持
Package: based58
based58A fast base-58 Python librarybased58is a fast Python library forBase58encoding and decoding. It includes support for Base58Check and configurable alphabets.It issignificantly fasterthan the pure-Pythonbase58 library,
as it calls the Rustbs58 libraryunder the hood.The API mimics that of thebase58library, with the exception that string inputs are not
supported, only bytes.Installationpip install based58Note: requires Python >= 3.7.Usage>>>importbased58>>>data=[1,2,3]>>>based58.b58encode(b'hello world')b'StV1DL6CwTryKyV'>>>based58.b58decode(b'StV1DL6CwTryKyV')b'hello world'>>>based58.b58encode_check(b'hello world')b'3vQB7B6MrGQZaxCuFg4oh'>>>based58.b58decode_check(b'3vQB7B6MrGQZaxCuFg4oh')b'hello world'>>>based58.b58encode(b'hello world',alphabet=based58.Alphabet.RIPPLE)b'StVrDLaUATiyKyV'>>>based58.b58decode(b'StVrDLaUATiyKyV',alphabet=based58.Alphabet.RIPPLE)b'hello world'DevelopmentSetupInstallpoetryInstall dev dependencies:poetry installActivate the poetry shell:poetryshellTestingRunmaturin developto compile the Rust code.Runmake fmt,make lint, andmake test.
Package: basedbinpy
basedbinpySimple python library and CLI forbasedbinpastebin-like service.Installing$python3-mpipinstallbasedbinpyLibrary demofrombasedbinpyimportClientclient=Client(BASEDBIN_URL)# example: "http://localhost:8080"paste=client.get_paste(PASTE_ID)print(paste["file_content"])CLI upload file demo$python3-mbasedbinpy--urlhttp://localhost:8080upload-fnote.txt
Package: base-decorator
base_decoratorpip install base_decorator通用的装饰器基类，使写装饰器变得更简单。importfunctoolsimportabcimportsysclassUndefind:passclassBaseDecorator(metaclass=abc.ABCMeta):"""简化了装饰器的编写。用户的装饰器需要继承这个，用户可以按需重新定义 before，after，when_exception 方法。为了一致性和省事，统一采用有参数装饰器，用户的装饰器后面必须带括号。"""# def __init__(self, *args, **kwargs):#     passraw_fun=Undefind()raw_result=Undefind()exc_info=Undefind()final_result=Undefind()# 用户可以自己定义final_result的值，如果定义了就把这个值作为函数的结果，否则把函数原始结果作为结果。def__call__(self,fun,*args,**kwargs):# print(locals())ifnotcallable(fun)orargsorkwargs:# 正常是只有fun一个参数，除非是装饰器没加括号造成的。raiseValueError('为了简单和一致起见，所有装饰器都采用有参数装饰器，被装饰函数上面的装饰器后面别忘了加括号')self.raw_fun=funf=functools.partial(BaseDecorator._execute,self)# 比 self.execute 利于补全functools.update_wrapper(f,fun,)returnfdef_execute(self,*args,**kwargs):self.before()try:self.raw_result=self.raw_fun(*args,**kwargs)self.after()exceptExceptionase:self.exc_info=sys.exc_info()self.when_exception()ifnotisinstance(self.final_result,Undefind):# 用户可以自己定义final_result的值，如果定义了就把这个值作为函数的结果。returnself.final_resultelse:returnself.raw_resultdefbefore(self):passdefafter(self):passdefwhen_exception(self):# print(self.exc_info) # (<class 'ZeroDivisionError'>, ZeroDivisionError('division by zero',), <traceback object at 0x000001D22BA3FD48>)raiseself.exc_info[1]if__name__=='__main__':importnb_log# noqaclassMyDeco(BaseDecorator):def__init__(self,a=5,b=6):self.a=aself.b=bdefbefore(self):print('开始执行')# noinspection PyAttributeOutsideInitdefafter(self):self.final_result=self.a*self.b*self.raw_resultdefcommon_deco(a=5,b=6):"""  上面的逻辑如果用常规方式写"""def_inner(f):@functools.wraps(f)def__inner(*args,**kwargs):try:print('开始执行')result=f(*args,**kwargs)returna*b*resultexceptExceptionase:raiseereturn__innerreturn_inner@MyDeco(b=4)# @common_deco(b=4)deffun3(x):print(x)returnx*2print(type(fun3))print(fun3)print(fun3.__wrapped__)# noqaprint(fun3(10))
Package: base-django-rest-framework
Base Django Rest Framework Project SetupInstallationUsingpippip install base-django-rest-frameworkUsingpoetrypoetry add base-django-rest-frameworkUsageIn your project's settings.py# ...INSTALLED_APPS=[# ..."rest_framework","base_django_rest_framework",# ...]# ...# Default base_django_rest_framework configurationsfrombase_django_rest_framework.confimport*# NOQA
Package: based-latex
based_latexGenerates SVG image code from LaTeX formulas.Installationpip install based_latexRequirementsThis package requires aLaTeX distribution, as well asGhostscriptandInkscape.UsageUse the functionbased_latex.get_latex_svg_data(expression)to get a dictionary of the form{
	dimensions: # Some dimension parameters (useful for HTML embedding)
	svg: # The SVG code.
}
Package: basedosdados
Python PackageDesenvolvimento Linux e Mac:Clone o repositório principal:gitclonehttps://github.com/basedosdados/mais.gitEntre na pasta local do repositório usandocd mais/e suba o ambiente localmente:makecreate-env
..mais/bin/activatecdpython-package/
pythonsetup.pydevelopDesenvolva uma nova featureAbra uma branch com o nome issue-Faça as modificações necessáriasSuba o Pull Request apontando para a branchpython-next-minoroupython-next-patch.
Sendo, minor e patch referentes ao bump da versão: v1.5.7 --> v<major>.<minor>.<patch>.O nome do PR deve seguir o padrão[infra] <titulo explicativo>O que uma modificação precisa terResolver o problemaLista de modificações efetuadasMudei a função X para fazer YTroquei o nome da variavel ZReferência aos issues atendidosDocumentação e DocstringsTestesVersionamentoPara publicar uma nova versão do pacote é preciso seguir os seguintes passos:Fazer o pull da branch:gitpullorigin[python-version]Onde[python-version]é a branch da nova versão do pacote.Se necessario adicionar novas dependências:poetryadd<package-name>Gerar novorequirements-dev.txtpoetryexport-frequirements.txt--outputrequirements-dev.txt--without-hashesEditarpyproject.toml:O arquivopyproject.tomlcontém, entre outras informações, a versão do pacote em python daBD. Segue excerto do arquivo:description="Organizar e facilitar o acesso a dados brasileiros através de tabelas públicas no BigQuery."homepage="https://github.com/base-dos-dados/bases"license="MIT"name="basedosdados"packages=[{include="basedosdados"},]readme="README.md"repository="https://github.com/base-dos-dados/bases"version="1.6.1-beta.2"O campoversiondeve ser alterado para o número da versão sendo lançada.Editarbasedosdados/__init__.py:O arquivobasedosdados/__init__.pycontém a versão do pacote em python daBD. Exemplo:__version__="1.6.1-beta.2"O atributo__version__também deve ser alterado para o número da versão sendo lançada.Push para branch:gitpushorigin[python-version]Publicação do pacote no PyPI (exige usuário e senha):
Para publicar o pacote no PyPI, use:poetryversion[python-version]poetrypublish--buildFaz merge da branch para a masterFaz release usando a UI do GitHubAtualizar versão do pacote usada internamente
Package: basedrelativity
basedrelativityPython package for solving relativity problems. Make no mistake, this package is not simply an alternative to Einstein's math. basedrelativity contains genuine corrections to both SR and GR and should always be used in place of the Lorentz transforms without exception.Visit basedphysics.com for an overview of the logic and math.Installationpip install basedrelativityUsageUse the ForwardSolver to compute the data that would be collected by an observer from the local motions of distant observees.All observer property inputs should be from the observee's local system.from basedrelativity import ForwardSolver

my_observer = Observer()
observee = Observer(5,5)
observee.local_v = 400000

solver = ForwardSolver()
solver.add_observer(my_observer)
solver.add_observer(observee)
observee_local_distance = solver.solve('x', my_observer, observee)Use the InverseSolver to compute the local motions of observed objects from an observer's data.All observer property inputs should be from the perspective of the primary observer.from basedrelativity import InverseSolver

my_observer = Observer()
observee = Observer(5,5)
observee.local_v = 400000

solver = ForwardSolver()
solver.add_observer(my_observer)
solver.add_observer(observee)
observee_local_distance = solver.solve('x', my_observer, observee)ContributingIf you find a bug 🐛, please open a bug report. If you have an idea for an improvement or new feature 🚀, please open a feature request.
Package: basedrow
basedrowbasedrowis a Python wrapper around the Baserow API. It provides a simple and intuitive way to interact with Baserow databases, allowing users to perform various operations like listing rows, creating new rows, updating existing ones, and more.FeaturesEasy to use client for interacting with the Baserow API.Supports listing, creating, updating, and retrieving rows in a Baserow table.Additional support for advanced query parameters like search, order_by, filters, etc.Extensible design for easy integration with other Python applications.InstallationTo installbasedrow, you can use pip:pipinstallbasedrowUsageWorking with TablesfrombasedrowimportClient,Tableclient=Client(url='YOUR_BASEROW_URL',token='YOUR_API_TOKEN')# Initialize a tabletable=Table(table_id='YOUR_TABLE_ID',client=client)# List rows in the tablerows=table.list_rows()# Filter rowsfiltered_rows=table.list_rows(# fields starting with `filter__{col}__{op}` will be converted to filters# see Baserow the API documentation for your table for detailsfilter__name__contains='sam',)# Get a specific rowrow=table.get_row(row_id='ROW_ID')# Create a new rownew_row=table.create_row(row={'column_name':'value'})# Update existing rowsupdated_rows=table.update_rows(rows=[{'id':'ROW_ID','column_name':'new_value'}])Windmill IntegrationfrombasedrowimportWindmillClientclient=WindmillClient(resource="f/your/baserowresource")ContributingContributions tobasedroware welcome! Please read our contributing guidelines to get started.Licensebasedrowis licensed under theMIT License.