milspend


Namemilspend JSON
Version 0.0.5 PyPI version JSON
download
home_pagehttps://github.com/y-takefuji/defense
SummaryA package for visualizing military spending of up to 4 countries
upload_time2024-04-22 08:07:05
maintainerNone
docs_urlNone
authoryoshiyasu takefuji
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # defense
This is under review.

[![Open in Code Ocean](https://codeocean.com/codeocean-assets/badge/open-in-code-ocean.svg)](https://codeocean.com/capsule/a01e51d9-0f62-40c5-bc9e-b4c8b16b421e/tree)

DOI: https://doi.org/10.24433/CO.7896039.v1

This is under review.

The goal of this project is to visualize military spending of countries.

Using a SIPRI dataset, milspend can visualize military spending of up to four countries.

The SIPRI dataset is downloadable from:

https://sipri.org/sites/default/files/SIPRI-Milex-data-1949-2020_0.xlsx

or the latest dataset from:

https://www.sipri.org/sites/default/files/SIPRI-Milex-data-1949-2022.xlsx

The number of the vertical axis indicates the US dollars in millions.

<img src='https://github.com/y-takefuji/defense/raw/main/result.png' width=640 height=480>

# How to install milspend on Linux, MacOS, or WSL on Windows
You may need matplotlib library.

$ pip install matplotlib

$ pip install -U milspend


# How to install milspend if you have a trouble.
$ pip install milspend --force-reinstall --no-cache-dir --no-binary :all:

# How to run milspend
Milspend program allows user to specify up to four countries to plot military spending of the specified countries.
For example, the following command can display military spending of the US, China, Russia and Japan in the graph.

For 0.0.1 and 0.0.2 with 1949-2020 dataset: Seperate countries with spaces.

$ milspend USA China Russia Japan

<img src='https://github.com/y-takefuji/defense/raw/main/uscnrujp.png' height=480 width=640>
The following command can display military spending of Japan and South Korea.


For 0.0.3 with with 1949-2022: Enclose up to four countries in single quotes and separate them with colons.

$ milspend 'Japan:Korea, South'

<img src='https://github.com/y-takefuji/defense/raw/main/jpkr.png' height=480 width=640>





            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/y-takefuji/defense",
    "name": "milspend",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "yoshiyasu takefuji",
    "author_email": "takefuji@keio.jp",
    "download_url": "https://files.pythonhosted.org/packages/6d/df/cd1ce08aa888cc04c5f9d7782df5a0a25b16e81bcafb10c09d098807ec10/milspend-0.0.5.tar.gz",
    "platform": null,
    "description": "# defense\nThis is under review.\n\n[![Open in Code Ocean](https://codeocean.com/codeocean-assets/badge/open-in-code-ocean.svg)](https://codeocean.com/capsule/a01e51d9-0f62-40c5-bc9e-b4c8b16b421e/tree)\n\nDOI: https://doi.org/10.24433/CO.7896039.v1\n\nThis is under review.\n\nThe goal of this project is to visualize military spending of countries.\n\nUsing a SIPRI dataset, milspend can visualize military spending of up to four countries.\n\nThe SIPRI dataset is downloadable from:\n\nhttps://sipri.org/sites/default/files/SIPRI-Milex-data-1949-2020_0.xlsx\n\nor the latest dataset from:\n\nhttps://www.sipri.org/sites/default/files/SIPRI-Milex-data-1949-2022.xlsx\n\nThe number of the vertical axis indicates the US dollars in millions.\n\n<img src='https://github.com/y-takefuji/defense/raw/main/result.png' width=640 height=480>\n\n# How to install milspend on Linux, MacOS, or WSL on Windows\nYou may need matplotlib library.\n\n$ pip install matplotlib\n\n$ pip install -U milspend\n\n\n# How to install milspend if you have a trouble.\n$ pip install milspend --force-reinstall --no-cache-dir --no-binary :all:\n\n# How to run milspend\nMilspend program allows user to specify up to four countries to plot military spending of the specified countries.\nFor example, the following command can display military spending of the US, China, Russia and Japan in the graph.\n\nFor 0.0.1 and 0.0.2 with 1949-2020 dataset: Seperate countries with spaces.\n\n$ milspend USA China Russia Japan\n\n<img src='https://github.com/y-takefuji/defense/raw/main/uscnrujp.png' height=480 width=640>\nThe following command can display military spending of Japan and South Korea.\n\n\nFor 0.0.3 with with 1949-2022: Enclose up to four countries in single quotes and separate them with colons.\n\n$ milspend 'Japan:Korea, South'\n\n<img src='https://github.com/y-takefuji/defense/raw/main/jpkr.png' height=480 width=640>\n\n\n\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A package for visualizing military spending of up to 4 countries",
    "version": "0.0.5",
    "project_urls": {
        "Bug Tracker": "https://github.com/y-takefuji/defense",
        "Homepage": "https://github.com/y-takefuji/defense"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1741a94420673b8f54d531f79be4a05a3d7598b0ed04cc7fa55a56b79f2fc85b",
                "md5": "c5080046fa02e3ef80d831f1d4925208",
                "sha256": "a6fb04c06438940749ec8b9508267f8b8b8d045b330abe01dcf413d0fde43667"
            },
            "downloads": -1,
            "filename": "milspend-0.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c5080046fa02e3ef80d831f1d4925208",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 3173,
            "upload_time": "2024-04-22T08:07:03",
            "upload_time_iso_8601": "2024-04-22T08:07:03.299850Z",
            "url": "https://files.pythonhosted.org/packages/17/41/a94420673b8f54d531f79be4a05a3d7598b0ed04cc7fa55a56b79f2fc85b/milspend-0.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6ddfcd1ce08aa888cc04c5f9d7782df5a0a25b16e81bcafb10c09d098807ec10",
                "md5": "32f15d4f004264ccfd83621bc599d211",
                "sha256": "bd6f69c29e2c6ea85396ead7f8396bb24b419affa608bf71e69125fbe32ff67d"
            },
            "downloads": -1,
            "filename": "milspend-0.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "32f15d4f004264ccfd83621bc599d211",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 2940,
            "upload_time": "2024-04-22T08:07:05",
            "upload_time_iso_8601": "2024-04-22T08:07:05.048643Z",
            "url": "https://files.pythonhosted.org/packages/6d/df/cd1ce08aa888cc04c5f9d7782df5a0a25b16e81bcafb10c09d098807ec10/milspend-0.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-22 08:07:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "y-takefuji",
    "github_project": "defense",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "milspend"
}
        
Elapsed time: 0.24350s