pygments-sb-nrql


Namepygments-sb-nrql JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/dynovaio/pygments-sb-nrql
SummaryNew Relic SDK to interact with Nerdgraph API.
upload_time2024-11-28 02:23:02
maintainerNone
docs_urlNone
authorSoftButterfly Development Team
requires_python<4.0.0,>=3.9.0
licenseMIT
keywords softbutterfly new relic sdk
VCS
bugtrack_url
requirements pygments
Travis-CI No Travis.
coveralls test coverage
            ![Community-Project](https://gitlab.com/softbutterfly/open-source/open-source-office/-/raw/master/assets/dynova/dynova-open-source--banner--community-project.png)

![PyPI - Supported versions](https://img.shields.io/pypi/pyversions/pygments-sb-nrql)
![PyPI - Package version](https://img.shields.io/pypi/v/pygments-sb-nrql)
![PyPI - Downloads](https://img.shields.io/pypi/dm/pygments-sb-nrql)
![PyPI - MIT License](https://img.shields.io/pypi/l/pygments-sb-nrql)

[![Codacy Badge](https://app.codacy.com/project/badge/Grade/16c98dc02de142a195ae029ac9c441fd)](https://app.codacy.com/gh/dynovaio/pygments-sb-nrql/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/16c98dc02de142a195ae029ac9c441fd)](https://app.codacy.com/gh/dynovaio/pygments-sb-nrql/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)
[![pipeline status](https://gitlab.com/softbutterfly/open-source/pygments-sb-nrql/badges/master/pipeline.svg)](https://gitlab.com/softbutterfly/open-source/pygments-sb-nrql/-/commits/master)

# Pygments SB NRQL

New Relic Query Language (NRQL) lexer for Pygments built by Dynova.

NRQL is a SQL-like query language you can use to query your data in New Relic.
This is a Python package that provides a lexer for Pygments to highlight NRQL
queries.

## Requirements

* Python 3.9.0 or higher

## Install

Install from PyPI

```bash
pip install pygments-sb-nrql
```

## Usage

Just install and create markdown blocks with the language `nrql` to get a
highlighted code block.

<pre>
```nrql
-- Example NRQL query
FROM
    Log
WITH
    numeric(http.statusCode) AS `sb.statusCode`,
    numeric(timespan) * 1000 AS `sb.duration`,
    capture(pageUrl, r'https://(?P<domain>[^/]+)/.+') AS `sb.domain`
SELECT
    average(`sb.duration`) AS 'Avg. Duration (s)'
WHERE
    entity.name = 'Sample Application' AND
    `sb.duration` > 0
FACET
    CASES(
        `sb.statusCode` < 400 AS 'Success',
        `sb.statusCode` < 500 AS 'Client Error',
        `sb.statusCode` < 600 AS 'Server Error'
    ) AS 'Status',
    `sb.domain` AS 'Domain'
TIMESERIES
    3 hours
SINCE
    '2024-10-01 00:00:00'
UNTIL
    '2024-11-01 00:00:00'
WITH TIMEZONE
    'America/LIMA'
COMPARE WITH
    1 month ago
```
</pre>

![Pygments SB NRQL](https://raw.githubusercontent.com/dynovaio/pygments-sb-nrql/refs/heads/master/assets/pygments-sb-nrql--example.png)

## Docs

* [Documentación](https://dynovaio.github.io/pygments-sb-nrql)

## Changelog

All changes to versions of this library are listed in the [change history](./CHANGELOG.md).

## Development

Check out our [contribution guide](./CONTRIBUTING.md).

## Contributors

See the list of contributors [here](https://github.com/dynovaio/pygments-sb-nrql/graphs/contributors).

## License

This project is licensed under the terms of the MIT license. See the
<a href="./LICENSE.txt" download>LICENSE</a> file.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dynovaio/pygments-sb-nrql",
    "name": "pygments-sb-nrql",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0.0,>=3.9.0",
    "maintainer_email": null,
    "keywords": "Softbutterfly, New Relic, SDK",
    "author": "SoftButterfly Development Team",
    "author_email": "dev@softbutterfly.io",
    "download_url": "https://files.pythonhosted.org/packages/30/c8/97ca32ac135af17fb6c82ff71c875e6247ec068b203177703c58ca7a4acd/pygments_sb_nrql-0.2.0.tar.gz",
    "platform": null,
    "description": "![Community-Project](https://gitlab.com/softbutterfly/open-source/open-source-office/-/raw/master/assets/dynova/dynova-open-source--banner--community-project.png)\n\n![PyPI - Supported versions](https://img.shields.io/pypi/pyversions/pygments-sb-nrql)\n![PyPI - Package version](https://img.shields.io/pypi/v/pygments-sb-nrql)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/pygments-sb-nrql)\n![PyPI - MIT License](https://img.shields.io/pypi/l/pygments-sb-nrql)\n\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/16c98dc02de142a195ae029ac9c441fd)](https://app.codacy.com/gh/dynovaio/pygments-sb-nrql/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)\n[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/16c98dc02de142a195ae029ac9c441fd)](https://app.codacy.com/gh/dynovaio/pygments-sb-nrql/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)\n[![pipeline status](https://gitlab.com/softbutterfly/open-source/pygments-sb-nrql/badges/master/pipeline.svg)](https://gitlab.com/softbutterfly/open-source/pygments-sb-nrql/-/commits/master)\n\n# Pygments SB NRQL\n\nNew Relic Query Language (NRQL) lexer for Pygments built by Dynova.\n\nNRQL is a SQL-like query language you can use to query your data in New Relic.\nThis is a Python package that provides a lexer for Pygments to highlight NRQL\nqueries.\n\n## Requirements\n\n* Python 3.9.0 or higher\n\n## Install\n\nInstall from PyPI\n\n```bash\npip install pygments-sb-nrql\n```\n\n## Usage\n\nJust install and create markdown blocks with the language `nrql` to get a\nhighlighted code block.\n\n<pre>\n```nrql\n-- Example NRQL query\nFROM\n    Log\nWITH\n    numeric(http.statusCode) AS `sb.statusCode`,\n    numeric(timespan) * 1000 AS `sb.duration`,\n    capture(pageUrl, r'https://(?P<domain>[^/]+)/.+') AS `sb.domain`\nSELECT\n    average(`sb.duration`) AS 'Avg. Duration (s)'\nWHERE\n    entity.name = 'Sample Application' AND\n    `sb.duration` > 0\nFACET\n    CASES(\n        `sb.statusCode` < 400 AS 'Success',\n        `sb.statusCode` < 500 AS 'Client Error',\n        `sb.statusCode` < 600 AS 'Server Error'\n    ) AS 'Status',\n    `sb.domain` AS 'Domain'\nTIMESERIES\n    3 hours\nSINCE\n    '2024-10-01 00:00:00'\nUNTIL\n    '2024-11-01 00:00:00'\nWITH TIMEZONE\n    'America/LIMA'\nCOMPARE WITH\n    1 month ago\n```\n</pre>\n\n![Pygments SB NRQL](https://raw.githubusercontent.com/dynovaio/pygments-sb-nrql/refs/heads/master/assets/pygments-sb-nrql--example.png)\n\n## Docs\n\n* [Documentaci\u00f3n](https://dynovaio.github.io/pygments-sb-nrql)\n\n## Changelog\n\nAll changes to versions of this library are listed in the [change history](./CHANGELOG.md).\n\n## Development\n\nCheck out our [contribution guide](./CONTRIBUTING.md).\n\n## Contributors\n\nSee the list of contributors [here](https://github.com/dynovaio/pygments-sb-nrql/graphs/contributors).\n\n## License\n\nThis project is licensed under the terms of the MIT license. See the\n<a href=\"./LICENSE.txt\" download>LICENSE</a> file.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "New Relic SDK to interact with Nerdgraph API.",
    "version": "0.2.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/dynovaio/pygments-sb-nrql/issues",
        "Documentation": "https://dynovaio.github.io/pygments-sb-nrql",
        "Download": "https://github.com/dynovaio/pygments-sb-nrql/archive/refs/tags/v0.2.0.zip",
        "Homepage": "https://github.com/dynovaio/pygments-sb-nrql",
        "Repository": "https://github.com/dynovaio/pygments-sb-nrql"
    },
    "split_keywords": [
        "softbutterfly",
        " new relic",
        " sdk"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eeb20b73056d4837333a92f6d8ff75924ba2da9499def2fb25450ae68bc8f68c",
                "md5": "cd588a3e6ce7ac95a8dd4c7cccc6c75f",
                "sha256": "6c4b4cfc90169c4d0d0601b6a81af13c06fc50af2b71114f358e763389fae87d"
            },
            "downloads": -1,
            "filename": "pygments_sb_nrql-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cd588a3e6ce7ac95a8dd4c7cccc6c75f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0.0,>=3.9.0",
            "size": 7163,
            "upload_time": "2024-11-28T02:23:00",
            "upload_time_iso_8601": "2024-11-28T02:23:00.576336Z",
            "url": "https://files.pythonhosted.org/packages/ee/b2/0b73056d4837333a92f6d8ff75924ba2da9499def2fb25450ae68bc8f68c/pygments_sb_nrql-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "30c897ca32ac135af17fb6c82ff71c875e6247ec068b203177703c58ca7a4acd",
                "md5": "fe22fc3389358b547f4a10c4dcf277d6",
                "sha256": "29b1e0370ba0bf672f3650ecf6499aabf2dc4ee4345df5b401397705af3cffb5"
            },
            "downloads": -1,
            "filename": "pygments_sb_nrql-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "fe22fc3389358b547f4a10c4dcf277d6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0.0,>=3.9.0",
            "size": 5637,
            "upload_time": "2024-11-28T02:23:02",
            "upload_time_iso_8601": "2024-11-28T02:23:02.336490Z",
            "url": "https://files.pythonhosted.org/packages/30/c8/97ca32ac135af17fb6c82ff71c875e6247ec068b203177703c58ca7a4acd/pygments_sb_nrql-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-28 02:23:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dynovaio",
    "github_project": "pygments-sb-nrql",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [
        {
            "name": "pygments",
            "specs": [
                [
                    "==",
                    "2.18.0"
                ]
            ]
        }
    ],
    "lcname": "pygments-sb-nrql"
}
        
Elapsed time: 1.07008s