{"id":13756918,"url":"https://github.com/pyexcel/pyexcel-xlsx","last_synced_at":"2025-10-09T04:04:49.284Z","repository":{"id":24021906,"uuid":"27406442","full_name":"pyexcel/pyexcel-xlsx","owner":"pyexcel","description":"A wrapper library to read, manipulate and write data in xlsx and xlsm format using openpyxl","archived":false,"fork":false,"pushed_at":"2025-05-03T11:20:00.000Z","size":343,"stargazers_count":119,"open_issues_count":3,"forks_count":33,"subscribers_count":6,"default_branch":"dev","last_synced_at":"2025-10-09T04:04:14.478Z","etag":null,"topics":["xlsx"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyexcel.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"chfw","patreon":"chfw"}},"created_at":"2014-12-02T00:03:24.000Z","updated_at":"2025-07-07T06:00:45.000Z","dependencies_parsed_at":"2024-01-17T00:19:07.665Z","dependency_job_id":"65202fad-7bf5-4634-bc14-e2e269d64e51","html_url":"https://github.com/pyexcel/pyexcel-xlsx","commit_stats":{"total_commits":246,"total_committers":5,"mean_commits":49.2,"dds":0.03658536585365857,"last_synced_commit":"3b3639d12270cc10fff32651280d139ec65bb354"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/pyexcel/pyexcel-xlsx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyexcel%2Fpyexcel-xlsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyexcel%2Fpyexcel-xlsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyexcel%2Fpyexcel-xlsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyexcel%2Fpyexcel-xlsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyexcel","download_url":"https://codeload.github.com/pyexcel/pyexcel-xlsx/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyexcel%2Fpyexcel-xlsx/sbom","scorecard":{"id":751374,"data":{"date":"2025-08-11","repo":{"name":"github.com/pyexcel/pyexcel-xlsx","commit":"0524e27b264ff606e82aeb5244939a52c1cd2668"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 2/11 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/pyexcel/pyexcel-xlsx/lint.yml/dev?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/pyexcel/pyexcel-xlsx/lint.yml/dev?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/moban-update.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/pyexcel/pyexcel-xlsx/moban-update.yml/dev?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/moban-update.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/pyexcel/pyexcel-xlsx/moban-update.yml/dev?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/moban-update.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/pyexcel/pyexcel-xlsx/moban-update.yml/dev?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/pyexcel/pyexcel-xlsx/pythonpublish.yml/dev?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/pyexcel/pyexcel-xlsx/pythonpublish.yml/dev?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/pyexcel/pyexcel-xlsx/pythonpublish.yml/dev?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/pyexcel/pyexcel-xlsx/tests.yml/dev?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/pyexcel/pyexcel-xlsx/tests.yml/dev?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/pyexcel/pyexcel-xlsx/tests.yml/dev?enable=pin","Warn: pipCommand not pinned by hash: lint.sh:1","Warn: pipCommand not pinned by hash: .github/workflows/moban-update.yml:18","Warn: pipCommand not pinned by hash: .github/workflows/moban-update.yml:19","Warn: pipCommand not pinned by hash: .github/workflows/pythonpublish.yml:25","Warn: pipCommand not pinned by hash: .github/workflows/pythonpublish.yml:26","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   5 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/lint.yml:1","Warn: no topLevel permission defined: .github/workflows/moban-update.yml:1","Warn: no topLevel permission defined: .github/workflows/pythonpublish.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/pythonpublish.yml:8"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'dev'","Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6","Warn: Project is vulnerable to: PYSEC-2022-238 / GHSA-h3qr-fjhm-jphw","Warn: Project is vulnerable to: PYSEC-2023-117 / GHSA-mrwq-x4v8-fh7p"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 26 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T20:29:16.169Z","repository_id":24021906,"created_at":"2025-08-22T20:29:16.169Z","updated_at":"2025-08-22T20:29:16.169Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000755,"owners_count":26082921,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["xlsx"],"created_at":"2024-08-03T11:00:57.624Z","updated_at":"2025-10-09T04:04:49.252Z","avatar_url":"https://github.com/pyexcel.png","language":"Python","funding_links":["https://github.com/sponsors/chfw","https://patreon.com/chfw","https://www.patreon.com/chfw","https://www.patreon.com/bePatron?u=5537627"],"categories":["Python","数据读写与提取","Data Loading \u0026 Extraction"],"sub_categories":[],"readme":"================================================================================\npyexcel-xlsx - Let you focus on data, instead of xlsx format\n================================================================================\n\n.. image:: https://raw.githubusercontent.com/pyexcel/pyexcel.github.io/master/images/patreon.png\n   :target: https://www.patreon.com/chfw\n\n.. image:: https://raw.githubusercontent.com/pyexcel/pyexcel-mobans/master/images/awesome-badge.svg\n   :target: https://awesome-python.com/#specific-formats-processing\n\n.. image:: https://codecov.io/gh/pyexcel/pyexcel-xlsx/branch/master/graph/badge.svg\n   :target: https://codecov.io/gh/pyexcel/pyexcel-xlsx\n\n.. image:: https://badge.fury.io/py/pyexcel-xlsx.svg\n   :target: https://pypi.org/project/pyexcel-xlsx\n\n.. image:: https://anaconda.org/conda-forge/pyexcel-xlsx/badges/version.svg\n   :target: https://anaconda.org/conda-forge/pyexcel-xlsx\n\n\n.. image:: https://pepy.tech/badge/pyexcel-xlsx/month\n   :target: https://pepy.tech/project/pyexcel-xlsx\n\n.. image:: https://anaconda.org/conda-forge/pyexcel-xlsx/badges/downloads.svg\n   :target: https://anaconda.org/conda-forge/pyexcel-xlsx\n\n.. image:: https://img.shields.io/gitter/room/gitterHQ/gitter.svg\n   :target: https://gitter.im/pyexcel/Lobby\n\n.. image:: https://img.shields.io/static/v1?label=continuous%20templating\u0026message=%E6%A8%A1%E7%89%88%E6%9B%B4%E6%96%B0\u0026color=blue\u0026style=flat-square\n    :target: https://moban.readthedocs.io/en/latest/#at-scale-continous-templating-for-open-source-projects\n\n.. image:: https://img.shields.io/static/v1?label=coding%20style\u0026message=black\u0026color=black\u0026style=flat-square\n    :target: https://github.com/psf/black\n\n**pyexcel-xlsx** is a tiny wrapper library to read, manipulate and write data in xlsx and xlsm format using  `read_only` mode reader, `write_only` mode writer from openpyxl. You are likely to use it with `pyexcel \u003chttps://github.com/pyexcel/pyexcel\u003e`__.\n\nPlease note:\n\n1. `auto_detect_int` flag will not take effect because openpyxl detect integer in python 3 by default.\n2. `skip_hidden_row_and_column` will get a penalty where `read_only` mode cannot be used.\n\n\n\nSupport the project\n================================================================================\n\nIf your company uses pyexcel and its components in a revenue-generating product,\nplease consider supporting the project on GitHub or\n`Patreon \u003chttps://www.patreon.com/bePatron?u=5537627\u003e`_. Your financial\nsupport will enable me to dedicate more time to coding, improving documentation,\nand creating engaging content.\n\n\nKnown constraints\n==================\n\nFonts, colors and charts are not supported.\n\nNor to read password protected xls, xlsx and ods files.\n\nInstallation\n================================================================================\n\n\nYou can install pyexcel-xlsx via pip:\n\n.. code-block:: bash\n\n    $ pip install pyexcel-xlsx\n\n\nor clone it and install it:\n\n.. code-block:: bash\n\n    $ git clone https://github.com/pyexcel/pyexcel-xlsx.git\n    $ cd pyexcel-xlsx\n    $ python setup.py install\n\nUsage\n================================================================================\n\nAs a standalone library\n--------------------------------------------------------------------------------\n\n.. testcode::\n   :hide:\n\n    \u003e\u003e\u003e import os\n    \u003e\u003e\u003e import sys\n    \u003e\u003e\u003e from io import BytesIO\n    \u003e\u003e\u003e from collections import OrderedDict\n\n\nWrite to an xlsx file\n********************************************************************************\n\n\n\nHere's the sample code to write a dictionary to an xlsx file:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e from pyexcel_xlsx import save_data\n    \u003e\u003e\u003e data = OrderedDict() # from collections import OrderedDict\n    \u003e\u003e\u003e data.update({\"Sheet 1\": [[1, 2, 3], [4, 5, 6]]})\n    \u003e\u003e\u003e data.update({\"Sheet 2\": [[\"row 1\", \"row 2\", \"row 3\"]]})\n    \u003e\u003e\u003e save_data(\"your_file.xlsx\", data)\n\n\nRead from an xlsx file\n********************************************************************************\n\nHere's the sample code:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e from pyexcel_xlsx import get_data\n    \u003e\u003e\u003e data = get_data(\"your_file.xlsx\")\n    \u003e\u003e\u003e import json\n    \u003e\u003e\u003e print(json.dumps(data))\n    {\"Sheet 1\": [[1, 2, 3], [4, 5, 6]], \"Sheet 2\": [[\"row 1\", \"row 2\", \"row 3\"]]}\n\n\nWrite an xlsx to memory\n********************************************************************************\n\nHere's the sample code to write a dictionary to an xlsx file:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e from pyexcel_xlsx import save_data\n    \u003e\u003e\u003e data = OrderedDict()\n    \u003e\u003e\u003e data.update({\"Sheet 1\": [[1, 2, 3], [4, 5, 6]]})\n    \u003e\u003e\u003e data.update({\"Sheet 2\": [[7, 8, 9], [10, 11, 12]]})\n    \u003e\u003e\u003e io = BytesIO()\n    \u003e\u003e\u003e save_data(io, data)\n    \u003e\u003e\u003e # do something with the io\n    \u003e\u003e\u003e # In reality, you might give it to your http response\n    \u003e\u003e\u003e # object for downloading\n\n\n\n\nRead from an xlsx from memory\n********************************************************************************\n\nContinue from previous example:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e # This is just an illustration\n    \u003e\u003e\u003e # In reality, you might deal with xlsx file upload\n    \u003e\u003e\u003e # where you will read from requests.FILES['YOUR_XLSX_FILE']\n    \u003e\u003e\u003e data = get_data(io)\n    \u003e\u003e\u003e print(json.dumps(data))\n    {\"Sheet 1\": [[1, 2, 3], [4, 5, 6]], \"Sheet 2\": [[7, 8, 9], [10, 11, 12]]}\n\n\nPagination feature\n********************************************************************************\n\n\n\nLet's assume the following file is a huge xlsx file:\n\n.. code-block:: python\n\n   \u003e\u003e\u003e huge_data = [\n   ...     [1, 21, 31],\n   ...     [2, 22, 32],\n   ...     [3, 23, 33],\n   ...     [4, 24, 34],\n   ...     [5, 25, 35],\n   ...     [6, 26, 36]\n   ... ]\n   \u003e\u003e\u003e sheetx = {\n   ...     \"huge\": huge_data\n   ... }\n   \u003e\u003e\u003e save_data(\"huge_file.xlsx\", sheetx)\n\nAnd let's pretend to read partial data:\n\n.. code-block:: python\n\n   \u003e\u003e\u003e partial_data = get_data(\"huge_file.xlsx\", start_row=2, row_limit=3)\n   \u003e\u003e\u003e print(json.dumps(partial_data))\n   {\"huge\": [[3, 23, 33], [4, 24, 34], [5, 25, 35]]}\n\nAnd you could as well do the same for columns:\n\n.. code-block:: python\n\n   \u003e\u003e\u003e partial_data = get_data(\"huge_file.xlsx\", start_column=1, column_limit=2)\n   \u003e\u003e\u003e print(json.dumps(partial_data))\n   {\"huge\": [[21, 31], [22, 32], [23, 33], [24, 34], [25, 35], [26, 36]]}\n\nObvious, you could do both at the same time:\n\n.. code-block:: python\n\n   \u003e\u003e\u003e partial_data = get_data(\"huge_file.xlsx\",\n   ...     start_row=2, row_limit=3,\n   ...     start_column=1, column_limit=2)\n   \u003e\u003e\u003e print(json.dumps(partial_data))\n   {\"huge\": [[23, 33], [24, 34], [25, 35]]}\n\n.. testcode::\n   :hide:\n\n   \u003e\u003e\u003e os.unlink(\"huge_file.xlsx\")\n\n\nAs a pyexcel plugin\n--------------------------------------------------------------------------------\n\nNo longer, explicit import is needed since pyexcel version 0.2.2. Instead,\nthis library is auto-loaded. So if you want to read data in xlsx format,\ninstalling it is enough.\n\n\nReading from an xlsx file\n********************************************************************************\n\nHere is the sample code:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e import pyexcel as pe\n    \u003e\u003e\u003e sheet = pe.get_book(file_name=\"your_file.xlsx\")\n    \u003e\u003e\u003e sheet\n    Sheet 1:\n    +---+---+---+\n    | 1 | 2 | 3 |\n    +---+---+---+\n    | 4 | 5 | 6 |\n    +---+---+---+\n    Sheet 2:\n    +-------+-------+-------+\n    | row 1 | row 2 | row 3 |\n    +-------+-------+-------+\n\n\nWriting to an xlsx file\n********************************************************************************\n\nHere is the sample code:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e sheet.save_as(\"another_file.xlsx\")\n\n\nReading from a IO instance\n********************************************************************************\n\nYou got to wrap the binary content with stream to get xlsx working:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e # This is just an illustration\n    \u003e\u003e\u003e # In reality, you might deal with xlsx file upload\n    \u003e\u003e\u003e # where you will read from requests.FILES['YOUR_XLSX_FILE']\n    \u003e\u003e\u003e xlsxfile = \"another_file.xlsx\"\n    \u003e\u003e\u003e with open(xlsxfile, \"rb\") as f:\n    ...     content = f.read()\n    ...     r = pe.get_book(file_type=\"xlsx\", file_content=content)\n    ...     print(r)\n    ...\n    Sheet 1:\n    +---+---+---+\n    | 1 | 2 | 3 |\n    +---+---+---+\n    | 4 | 5 | 6 |\n    +---+---+---+\n    Sheet 2:\n    +-------+-------+-------+\n    | row 1 | row 2 | row 3 |\n    +-------+-------+-------+\n\n\nWriting to a BytesIO instance\n********************************************************************************\n\nYou need to pass a BytesIO instance to Writer:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e data = [\n    ...     [1, 2, 3],\n    ...     [4, 5, 6]\n    ... ]\n    \u003e\u003e\u003e io = BytesIO()\n    \u003e\u003e\u003e sheet = pe.Sheet(data)\n    \u003e\u003e\u003e io = sheet.save_to_memory(\"xlsx\", io)\n    \u003e\u003e\u003e # then do something with io\n    \u003e\u003e\u003e # In reality, you might give it to your http response\n    \u003e\u003e\u003e # object for downloading\n\n\nLicense\n================================================================================\n\nNew BSD License\n\nDeveloper guide\n==================\n\nDevelopment steps for code changes\n\n#. git clone https://github.com/pyexcel/pyexcel-xlsx.git\n#. cd pyexcel-xlsx\n\nUpgrade your setup tools and pip. They are needed for development and testing only:\n\n#. pip install --upgrade setuptools pip\n\nThen install relevant development requirements:\n\n#. pip install -r rnd_requirements.txt # if such a file exists\n#. pip install -r requirements.txt\n#. pip install -r tests/requirements.txt\n\nOnce you have finished your changes, please provide test case(s), relevant documentation\nand update changelog.yml\n\n.. note::\n\n    As to rnd_requirements.txt, usually, it is created when a dependent\n    library is not released. Once the dependency is installed\n    (will be released), the future\n    version of the dependency in the requirements.txt will be valid.\n\n\nHow to test your contribution\n--------------------------------------------------------------------------------\n\nAlthough `nose` and `doctest` are both used in code testing, it is advisable\nthat unit tests are put in tests. `doctest` is incorporated only to make sure\nthe code examples in documentation remain valid across different development\nreleases.\n\nOn Linux/Unix systems, please launch your tests like this::\n\n    $ make\n\nOn Windows, please issue this command::\n\n    \u003e test.bat\n\n\nBefore you commit\n------------------------------\n\nPlease run::\n\n    $ make format\n\nso as to beautify your code otherwise your build may fail your unit test.\n\n\n\n.. testcode::\n   :hide:\n\n   \u003e\u003e\u003e import os\n   \u003e\u003e\u003e os.unlink(\"your_file.xlsx\")\n   \u003e\u003e\u003e os.unlink(\"another_file.xlsx\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyexcel%2Fpyexcel-xlsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyexcel%2Fpyexcel-xlsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyexcel%2Fpyexcel-xlsx/lists"}