{"id":18623082,"url":"https://github.com/kirang89/css-mediaquery","last_synced_at":"2026-05-17T08:32:40.880Z","repository":{"id":62565691,"uuid":"94069746","full_name":"kirang89/css-mediaquery","owner":"kirang89","description":"Parses and determines if a given CSS Media Query matches a set of values. This is a port of https://github.com/ericf/css-mediaquery.","archived":false,"fork":false,"pushed_at":"2017-06-24T23:26:56.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-19T00:55:42.415Z","etag":null,"topics":["css","css-mediaquery","media-queries","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kirang89.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-12T07:50:53.000Z","updated_at":"2017-07-28T22:29:34.000Z","dependencies_parsed_at":"2022-11-03T16:00:23.420Z","dependency_job_id":null,"html_url":"https://github.com/kirang89/css-mediaquery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kirang89/css-mediaquery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirang89%2Fcss-mediaquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirang89%2Fcss-mediaquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirang89%2Fcss-mediaquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirang89%2Fcss-mediaquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kirang89","download_url":"https://codeload.github.com/kirang89/css-mediaquery/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirang89%2Fcss-mediaquery/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265218751,"owners_count":23729528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","css-mediaquery","media-queries","python"],"created_at":"2024-11-07T04:21:06.283Z","updated_at":"2026-05-17T08:32:35.860Z","avatar_url":"https://github.com/kirang89.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## css-mediaquery\n\n[![Build Status](https://travis-ci.org/kirang89/css-mediaquery.svg?branch=master)](https://travis-ci.org/kirang89/css-mediaquery) [![PyPI version](https://badge.fury.io/py/cssmediaquery.svg)](https://badge.fury.io/py/cssmediaquery)\n\nParses and determines if a given CSS Media Query matches a set of values.\n\nThis is a port of https://github.com/ericf/css-mediaquery.\n\n### Usage\n\n```python\n\nfrom cssmediaquery import match, parse\n\nisamatch = match('screen and (min-width: 40em)', {\n\t'type'  : 'screen',\n\t'width' : '1024px'\n})\n# returns True\n\nast = parse('screen and (min-width: 40em)')\nprint ast\n# [\n#    {\n#        'inverse': 'false',\n#        'type'   : 'screen',\n#        'expressions': [{\n#                'modifier': 'min',\n#                'feature': 'width',\n#                'value': '40em'\n#         }]\n#    }\n# ]\n```\n\n### Installing\n\n    $ pip install cssmediaquery\n\n### Running Tests\n\n    python tests.py -v\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirang89%2Fcss-mediaquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkirang89%2Fcss-mediaquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirang89%2Fcss-mediaquery/lists"}