physical2logical


Namephysical2logical JSON
Version 2.3.1 PyPI version JSON
download
home_page
SummaryConvert CSS physical properties to logical
upload_time2023-01-21 11:39:49
maintainer
docs_urlNone
author
requires_python
licenseApache Software License
keywords css rtl logical physical scss
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # physical2logical

Convert CSS physical properties to logical.

Converts margins, padding, and borders to logical values, allowing RTL and vertical languages to show correctly.

## Install

```commandline
pip install physical2logical
```

## Usage

```commandline
usage: css2logical [-h] [-r | --recursive | --no-recursive] [-u | --update | --no-update] [-a | --analyze | --no-analyze] [-f FILENAME]  [-l LOG] [-p PATTERN] source

Convert CSS physical properties to logical

positional arguments:
  source                Path to source directory or one file. Required

optional arguments:
  -h, --help            show this help message and exit
  -r, --recursive, --no-recursive
                        Recursive process of all files from source directory. (default: True)
  -u, --update, --no-update
                        Update files. (default: False)
  -a, --analyze, --no-analyze
                        Dry Run - Create a report with all changes (without actual source file changes). (default: False)
  -f FILENAME, --filename FILENAME
                        Path to file where to save reports (used only with -a | --analyze flag). (default: "./report.html")
  -l LOG, --log LOG     Log Level: All: 0, Debug: 10, Info: 20, Warning: 30, Error: 40 (default: 0)
  -p PATTERN, --pattern PATTERN
                        Comma separated list of glob patterns (default: '*.scss, *.css')


```

Based on https://gist.github.com/nyurik/d438cb56a9059a0660ce4176ef94576f

## Report

![report.png](report.png)

## Example

```commandline
css2logical -u ./src/scss/
```

![logs.png](logs.png)

![physical2logical-all-files.png](physical2logical-all-files.png)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "physical2logical",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "css,rtl,logical,physical,scss",
    "author": "",
    "author_email": "Dragan Filipovic <info@frontenddot.com>, Yuri Astrakhan <yuriastrakhan@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/e8/03/2e4eccdb9c52ba975cfc03ba63c933f889f687845317eb2e3b4897845544/physical2logical-2.3.1.tar.gz",
    "platform": null,
    "description": "# physical2logical\n\nConvert CSS physical properties to logical.\n\nConverts margins, padding, and borders to logical values, allowing RTL and vertical languages to show correctly.\n\n## Install\n\n```commandline\npip install physical2logical\n```\n\n## Usage\n\n```commandline\nusage: css2logical [-h] [-r | --recursive | --no-recursive] [-u | --update | --no-update] [-a | --analyze | --no-analyze] [-f FILENAME]  [-l LOG] [-p PATTERN] source\n\nConvert CSS physical properties to logical\n\npositional arguments:\n  source                Path to source directory or one file. Required\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -r, --recursive, --no-recursive\n                        Recursive process of all files from source directory. (default: True)\n  -u, --update, --no-update\n                        Update files. (default: False)\n  -a, --analyze, --no-analyze\n                        Dry Run - Create a report with all changes (without actual source file changes). (default: False)\n  -f FILENAME, --filename FILENAME\n                        Path to file where to save reports (used only with -a | --analyze flag). (default: \"./report.html\")\n  -l LOG, --log LOG     Log Level: All: 0, Debug: 10, Info: 20, Warning: 30, Error: 40 (default: 0)\n  -p PATTERN, --pattern PATTERN\n                        Comma separated list of glob patterns (default: '*.scss, *.css')\n\n\n```\n\nBased on https://gist.github.com/nyurik/d438cb56a9059a0660ce4176ef94576f\n\n## Report\n\n![report.png](report.png)\n\n## Example\n\n```commandline\ncss2logical -u ./src/scss/\n```\n\n![logs.png](logs.png)\n\n![physical2logical-all-files.png](physical2logical-all-files.png)\n",
    "bugtrack_url": null,
    "license": "Apache Software License",
    "summary": "Convert CSS physical properties to logical",
    "version": "2.3.1",
    "split_keywords": [
        "css",
        "rtl",
        "logical",
        "physical",
        "scss"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "306a5a346415cec376bda7369badb25d28fe12659b0f9f7014062435b63445c1",
                "md5": "4b3d9de5e486e11f7c60b326b839e817",
                "sha256": "d76223cd1caf7f0edaa0f8735e55104bcd8e8459d9b0bcd203e24227be99fcdc"
            },
            "downloads": -1,
            "filename": "physical2logical-2.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4b3d9de5e486e11f7c60b326b839e817",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 14444,
            "upload_time": "2023-01-21T11:39:48",
            "upload_time_iso_8601": "2023-01-21T11:39:48.127193Z",
            "url": "https://files.pythonhosted.org/packages/30/6a/5a346415cec376bda7369badb25d28fe12659b0f9f7014062435b63445c1/physical2logical-2.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e8032e4eccdb9c52ba975cfc03ba63c933f889f687845317eb2e3b4897845544",
                "md5": "8bc47feca165702667064d4d15303029",
                "sha256": "bb7285c8b795c97e22275bc19d441fca140b8ce6f77b21a5b02747e0d57d538c"
            },
            "downloads": -1,
            "filename": "physical2logical-2.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "8bc47feca165702667064d4d15303029",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 11568,
            "upload_time": "2023-01-21T11:39:49",
            "upload_time_iso_8601": "2023-01-21T11:39:49.146618Z",
            "url": "https://files.pythonhosted.org/packages/e8/03/2e4eccdb9c52ba975cfc03ba63c933f889f687845317eb2e3b4897845544/physical2logical-2.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-21 11:39:49",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "physical2logical"
}
        
Elapsed time: 0.02927s