semvec/pypi-packages huggingface dataset:
sqlint 0.2.4
Simple Sql Linter
License: MIT

=============
sqlint
=============

This is a SQL parser and linter for Standard SQL(BigQuery).

https://github.com/shigeru0215/sqlint

Install
=======

.. code::

    $ pip install sqlint

Usage
========

linting
--------

.. code::

    $ cat example.sql
    >> select
    >>    a + b as x
    >>    , b+c as y
    >> from
    >>    test_table as t1
    $ sqlint example.sql
    >> example.sql (L3, 8): whitespace must be before binary operator: b+
    >> example.sql (L3, 8): whitespace must be after binary operator: +c

formatting
-----------

With -f option, this linter show formatted SQL.

.. code::

    $ sqlint -f query/example.sql
    >> select
    >>    a + b as x
    >>    , b + c as y
    >> from
    >>    test_table as t1

REPL

.. code::

    $ python
    >>> from sqlint import parse, check, format
    >>> sql = 'SELECT id From user_table  where user_table.age >10'
    >>>
    >>> parse(sql)
    [[<Keyword: 'SELECT'>, <Whitespace: ' '>, <Identifier: 'id'>, <Whitespace: ' '>, <Keyword: 'From'>, <Whitespace: ' '>, <Identifier: 'user_table'>, <Whitespace: '  '>, <Keyword: 'where'>, <Whitespace: ' '>, <Identifier: 'user_table.age'>, <Whitespace: ' '>, <Operator: '>'>, <Identifier: '10'>]]
    >>>
    >>> check(sql)
    ['(L1, 1): reserved keywords must be lower case: SELECT -> select', '(L1, 11): reserved keywords must be lower case: From -> from', '(L1, 26): too many spaces', '(L1, 49): whitespace must be after binary operator: >10']
    >>>
    >>> format(sql)
    >>> select
    >>>     id
    >>> from
    >>>     user_table
    >>> where
    >>>     user_table.age > 10
botogram2 0.6.1
A Python framework for Telegram bots
License: MIT


========
botogram
========

botogram is a Python framework, which allows you to focus just on
creating your `Telegram bots`_, without worrying about the underlying
Bots API.

While most of the libraries for Telegram out there just wrap the Bots
API, botogram focuses heavily on the development experience, aiming to
provide you the best API possible. Most of the Telegram implementation
details are managed by botogram, so you can just focus on your bot.

::

    import botogram
    bot = botogram.create("API-KEY")

    @bot.command("hello")
    def hello_command(chat, message, args):
        """Say hello to the world!"""
        chat.send("Hello world")

    if __name__ == "__main__":
        bot.run()

Want to get started? `Go to the documentation`_

.. _Telegram bots: https://core.telegram.org/bots
.. _Go to the documentation: https://botogram.dev/docs