{ "info": { "author": "Mael Stor", "author_email": "maelstor@posteo.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: End Users/Desktop", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Natural Language :: English", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3 :: Only", "Topic :: Education", "Topic :: Multimedia", "Topic :: Multimedia :: Graphics", "Topic :: Multimedia :: Graphics :: Presentation", "Topic :: Multimedia :: Graphics :: Viewers", "Topic :: Scientific/Engineering :: GIS", "Topic :: Scientific/Engineering :: Visualization", "Topic :: Utilities" ], "description": "
\n
\n      db       .M\"\"\"bgd   .g8\"\"\"bgd `7MMF'`7MMF'    `7MMM.     ,MMF'                   \n     ;MM:     ,MI    \"Y .dP'     `M   MM    MM        MMMb    dPMM                     \n    ,V^MM.    `MMb.     dM'       `   MM    MM        M YM   ,M MM   ,6\"Yb. `7MMpdMAo. \n   ,M  `MM      `YMMNq. MM            MM    MM        M  Mb  M' MM  8)   MM   MM   `Wb \n   AbmmmqMA   .     `MM MM.           MM    MM        M  YM.P'  MM   ,pm9MM   MM    M8 \n  A'     VML  Mb     dM `Mb.     ,'   MM    MM        M  `YM'   MM  8M   MM   MM   ,AP \n.AMA.   .AMMA.P\"Ybmmd\"    `\"bmmmd'  .JMML..JMML.    .JML. `'  .JMML.`Moo9^Yo. MMbmmd'  \n                                                                              MM       \n                                                                            .JMML.     \n
\n

Terminal application to print countries to console in ASCII Art

\n
\n
\n Natural Earth\n
\n\n----\n\n\n
\n\"Code\n\"License\"\n\"Python\n\"GitHub\n\"Travis\n
\n\n----\n\n
\n
\n                                \u00b7-----\u00b7                                         \n                               /...../                                          \n                              \u00b4...../                                           \n                              |....|  ,---\u00b7                                     \n                              |.....--....|                                     \n                             \u00b4............\u00b7                                     \n                             \u00b7.........../                                      \n                              `........./                                       \n                               |.......|                                        \n                               |,.......--\u00b7                                     \n                               \u00b7 |.........\u00b7                                    \n                                 |..........\u00b7                                   \n                        \u00b7--\u00b7     \u00b7-.........|                                   \n                         |..-\u00b7     `--.......\u00b7                                  \n                         |...|        `.......--\u00b7                               \n                        \u00b7----\u00b7         `......-.\u00b7                               \n                                        United Kingdom                          \n                                        \u00b7.....-..\u00b7                              \n                                  \u00b7-----..........\u00b7                             \n                                  |................\u00b7                            \n                                  \u00b7.................---\u00b7                        \n                                   |...................|                        \n                                  /...................,\u00b7                        \n                                \u00b7-...................|                          \n                                  `-..................\u00b7                         \n                                    |................,\u00b7                         \n                                  ,-....,....,------\u00b4                           \n                                 /....,\u00b4 `--\u00b4                                   \n                               \u00b7-----\u00b4                                          \n                               \u00b7\u00b7                                               \n
\n
\n\nYou can print any country with `asciimap` for which a Geometry exists (currently\n177 countries). \n\n## Dependencies\n\nFor `asciimap` to work you need the python bindings for GDAL and GDAL itself \ninstalled. I experienced problems installing the python bindings into a \nvirtualenv, so I recommend installing the system packages.\n\n#### Arch\n pacman -Sy gdal python-gdal\n\n#### Debian/Ubuntu\n\n apt-get update\n apt-get install gdal-bin libgdal-dev python3-gdal\n\n## Installation\n\n#### PyPi\nInstallation with pip is straightforward:\n\n sudo pip install asciimap\n\n#### Git\nInstallation with git from master branch:\n\n git clone git@github.com:MaelStor/asciimap.git\n cd asciimap\n git checkout master\n\n###### In userspace\nInstall in user space with:\n\n pip install --user .\n\n###### System\nInstall system wide with:\n\n sudo pip install .\n\n## Usage\n
\nusage: asciimap [-h] [--fill FILL] [--empty EMPTY] [--outside OUTSIDE]\n                [--height HEIGHT] [--width WIDTH] [--blur BLUR]\n                [--method {full,f,dynamic,d,height,h,width,w}]\n                [--surface SURFACE] [--negative] [--benchmark] [--stats]\n                country\n\nPrint countries in ASCII Art\n\npositional arguments:\n  country               Select country by ISO 3166-1 alpha-2 codes. For a\n                        complete list of ISO A2 codes use 'list' as argument\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --fill FILL, -f FILL  Single character marking the edges of the land surface\n  --empty EMPTY, -e EMPTY\n                        The character to use for the land surface\n  --outside OUTSIDE, -o OUTSIDE\n                        Single character marking the outside surface\n  --height HEIGHT, -i HEIGHT\n                        Height of the map as integer\n  --width WIDTH, -w WIDTH\n                        Width of the map as integer\n  --blur BLUR, -b BLUR  Add blur to radius and inflate the surface by double\n                        value\n  --method {full,f,dynamic,d,height,h,width,w}, -m {full,f,dynamic,d,height,h,width,w}\n                        Change rendering method\n  --surface SURFACE, -s SURFACE\n                        Choose a surface by number or 'all'\n  --negative, -n        Print the negative\n  --benchmark, -t       Print execution times of methods along with the map.\n                        Can be give multiple times to increase verbosity.\n  --stats, -x           Print statistics\n\nList all countries and ISO 3166-1 alpha-2 codes with 'list'\n
\n\n## Examples\n $ asciimap it\n
\n                                    \u00b7-\u00b7                                         \n                                \u00b7---...\u00b7                                        \n                                |.......----\u00b7                                   \n                           ,----............|                                   \n                  \u00b7    ,---...............,-|                                   \n                  \u00b7----.................,\u00b4  \u00b7                                   \n                   |.................../                                        \n                   |..................|                                         \n                  \u00b7...................|                                         \n                   |......,...........|                                         \n                   \u00b7-...,\u00b4 `-..........\u00b7                                        \n                     |./     `-........|                                        \n                     \u00b7\u00b4        `........-\u00b7                                      \n                                |.........-\u00b7                                    \n                                |..........|                                    \n                                \u00b7...........\u00b7                                   \n                                 `....Italy..\u00b7                                  \n                                  `...........\u00b7                                 \n                                   `-..........\u00b7                                \n                                     `..........-\u00b7                              \n                                      `-..........---\u00b7                          \n                                        `--.........|                           \n                                           `-........--\u00b7                        \n                          ,\u00b7                 `-.........-\u00b7                      \n                        \u00b7-..\u00b7                  `-........--\u00b7                    \n                        |....\u00b7                   `....../ `--\u00b7                  \n                        |....\u00b7                    `..../    `-\u00b7                 \n                        |...|                      `..|                         \n                        |...|                       `..\u00b7                        \n                        \u00b7..,\u00b7                        |..-\u00b7                      \n                         `\u00b4                          |../                       \n                                                     |./                        \n                                                     |/                         \n                                                    \u00b4|                          \n                                        \u00b7-\u00b7   ,---\u00b7 \u00b7\u00b7                          \n                                        |..---....\u00b7                             \n                                        \u00b7--......|                              \n                                           `---..|                              \n                                               `-|                              \n                                                 \u00b7                              \n
\n\n $ asciimap no\n
\n                                        \u00b7-----\u00b7 \u00b7----\u00b7                          \n                             ,-\u00b7   ,---\u00b7   |,----------\u00b7                        \n                           \u00b7-...---.....---/                                    \n                             `-..........,\u00b4                                     \n                               `-......,\u00b4    \u00b7--\u00b7                               \n                                 `-...|        `\u00b7                               \n                                   `--\u00b7                                         \n\n\n\n\n\n\n\n\n\n\n                                                   ,--------\u00b7                   \n                                              ,\u00b7 ,-...,----..\u00b7                  \n                                         \u00b7-----.`....|     `--\u00b7                 \n                                   Norway../   `-----\u00b7                          \n                                     \u00b7-\u00b7 \u00b7\u00b4                                     \n                                   ,-/                                          \n                                 ,-./                                           \n                                /../                                            \n                               /../                                             \n                              /../                                              \n                            ,-..|                                               \n                           /..,-\u00b7                                               \n                         ,-..|                                                  \n                       ,-....\u00b7                                                  \n                    ,--.....|                                                   \n                  ,-........|                                                   \n                 \u00b7...........\u00b7                                                  \n                 |...........|                                                  \n                 |...........|                                                  \n                 \u00b7...........\u00b7                                                  \n                  |......,--\u00b4                                                   \n                  \u00b7....,\u00b4                                                       \n                   \u00b7--\u00b7                                                         \n
\n\nYou can print a country with the negative filter:\n\n $ asciimap --surface 1 fr --negative\n\n
\n.........................................\u00b7\u00b7.....................................\n.......................................     ....................................\n.......................................        .................................\n......................................          ................................\n......................................            ..............................\n...................................                .  ..........................\n....................... ........                        ........................\n.......................   ...                             ......................\n........................                                     ...................\n........................                                           .............\n...............    .....                                            ............\n...........\u00b7                                                       .............\n...........|                                                       .............\n...........|                                                      ..............\n...........\u00b7                                                      ..............\n...............                                                   ..............\n...................                                           .  ...............\n....................                                           .................\n......................                                       ...................\n.......................                                     ....................\n........................                  France           .....................\n.........................                                  .....................\n..........................                                    ..................\n..........................                                     .................\n..........................                                     .................\n..........................                                     .................\n..........................                                      ................\n..........................                                     .................\n..........................                                     .................\n..........................                                     .................\n..........................                                     .................\n..........................                                      ................\n.........................                                         ..............\n.........................                                         ..............\n........................                                         ...............\n........................                           ....        .................\n.........................                      .................................\n............................                  ..................................\n................................  ..          ..................................\n.......................................\u00b7----\u00b7...................................\n
\n\nor if you want the borders to be shown:\n\n $ asciimap --surface 1 --outside '.' fr\n\n
\n.........................................\u00b7\u00b7.....................................\n.......................................\u00b7-  \u00b7....................................\n.......................................|    --\u00b7.................................\n......................................\u00b4        \u00b7................................\n......................................|         -\u00b7..............................\n...................................,--            \u00b7.,\u00b7..........................\n.......................\u00b7........,--                `  -\u00b7........................\n.......................\u00b7-\u00b7...,--                        -\u00b7......................\n........................| ---                             --\u00b7...................\n........................|                                    -----\u00b7.............\n...............,--\u00b7.....|                                          \u00b7............\n...........\u00b7---    -----                                          |.............\n...........|                                                      \u00b7.............\n...........|                                                     |..............\n...........\u00b7---                                                  |..............\n...............`---                                           ,  \u00b7..............\n...................`                                         |.\\\u00b4...............\n....................`-                                       -\u00b7.................\n......................`                                     /...................\n.......................`                                   /....................\n........................`                 France          |.....................\n.........................`                                |.....................\n..........................|                                --\u00b7..................\n..........................|                                   \u00b7.................\n..........................|                                   |.................\n..........................|                                   |.................\n..........................|                                    \u00b7................\n..........................|                                   |.................\n..........................|                                   |.................\n..........................|                                   |.................\n..........................|                                   |.................\n..........................|                                    \u00b7................\n.........................\u00b4                                      -\u00b7..............\n.........................|                                       \u00b7..............\n........................\u00b4                          ,---        ,\u00b4...............\n........................\u00b7                      ,--\u00b4....`------\u00b4.................\n.........................`--                  /.................................\n............................`---  ,-         |..................................\n................................`\u00b4..`--      \u00b7..................................\n.......................................\u00b7----\u00b7...................................\n
\n\nFillings can be combined. If you want to fill the land surface with `.`,\neverything outside the land surface with `~` and corners with `^` use:\n\n $ asciimap nz --outside '~' --empty '.' --fill '^'\n\n
\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\u00b7\u00b7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~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~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n~~~~~~~~~~~~~~~~~~~~~~~~~\u00b7---\u00b7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n
\n\n#### Advanced usage\nAn example with 'paste' and boasted usage of 'blur':\n\n $ asciimap -b 0 jp -i 30 -w 30 | paste - <(asciimap -b 2.0 jp -i 30 -w 30)\n\n
\n                       \u00b7                            \u00b7-\u00b7       \n                       |\u00b7                          \u00b4...-\u00b7     \n                       |.-\u00b7  \u00b7                     |.....---\u00b7 \n                      /....--\u00b7                    /.........| \n                    ,-.,...,\u00b4                    /...........\u00b7\n                   \u00b4../ `./                     \u00b4............|\n                   \u00b7-\u00b4   \u00b7                      |............|\n                                                |............\u00b7\n                    \u00b7-\u00b7                         |..........,\u00b4 \n                    |.|                         |........,\u00b4   \n                    |.|                         |.......|     \n                    |.|                         |.......|     \n                   \u00b4..\u00b7                      ,--........\u00b7     \n                   \u00b7.\u00b7                     \u00b7-..........|      \n                Japan                      |...Japan...\u00b7      \n                \u00b7....\u00b7                ,----...........|       \n             ,--....|                /................|       \n            \u00b4.......|              ,-.................|       \n        ,-\u00b7 |.......\u00b7             /...................\u00b7       \n     ,--..--..,----\u00b4             /.................../        \n    /-.,.| |./                  \u00b7.................../         \n  ,-/ | \\\u00b7 \u00b7\u00b4                   |..............,---\u00b4          \n /.|  |\u00b7                        \u00b7............./               \n\u00b7-..\u00b7 \u00b7                          |........,--\u00b4                \n  ||                             \u00b7......,\u00b4                    \n  |\u00b7                              |..../                      \n  \u00b7                               \u00b7-../                       \n                                    `\u00b4                        \n\n\n
\n\n $ asciimap au --blur 0.1 --empty '.' --method full\n\n
\n                                                         \u00b7\u00b7                     \n                                      ,-\u00b7                ||                     \n                                  ,---...-----\u00b7         \u00b4..\u00b7                    \n                                 /..........|           |..|                    \n                        ,---\u00b7   /...........|           |...\u00b7                   \n                       /.....---............|           |....--\u00b7                \n                      /......................--\u00b7       \u00b4.......|                \n                  \u00b7\u00b7 /..........................--\u00b7    |........\u00b7               \n                  |.`..............................----.........|               \n                 /..............................................|               \n                /................................................-\u00b7             \n           ,----...................................................--\u00b7          \n     ,-----...........................................................\u00b7         \n   ,-..................................................................\u00b7        \n \u00b7-.....................................................................-\u00b7      \n |........................................................................\u00b7     \n\u00b7..........................................................................-\u00b7   \n |,..........................................................................\u00b7  \n\u00b7| |......................................Australia...........................\u00b7 \n |`...........................................................................| \n \u00b7............................................................................| \n  `............................................................................\u00b7\n   |...........................................................................\u00b7\n   \u00b7..........................................................................| \n    `...........................,---..........................................| \n     |...................,-----\u00b4    `----.....................................\u00b7 \n     |................,-\u00b4                `......,...........................,\u00b4  \n    /........,-------\u00b4                    `...,\u00b4 |........................./    \n   \u00b7--....,-\u00b4                              `-\u00b4  /-......................../     \n      `--\u00b4                                     \u00b7\u00b7 `....................../      \n                                                   `....................|       \n                                                    `...................|       \n                                                     `--......,.....,---\u00b7       \n                                                        `----\u00b4 `---\u00b4            \n\n\n                                                              \u00b7\u00b7   ,-\u00b7          \n                                                               |---..\u00b7          \n                                                               \u00b7...,\u00b4           \n                                                                \u00b7-\u00b7             \n
\n\nSometimes a country has more than one land surface (or more precise: Polygons)\ndefined, what warps or shows just a few pixels for the surface of interest \nwhen printing all surfaces together:\n\n $ asciimap --surface all --method full ru --fill \"'\"\n
\n                                                  \u00b7          \u00b7                  \n                                                             \u00b7                  \n                                                              \u00b7                 \n\n                                                              ,\u00b7                \n                                                     \u00b7      ,-..\u00b7      \u00b7        \n                                                    \u00b7      /....|               \n                                                    \u00b7     \u00b4.....|      \u00b7        \n                                                       \u00b7  |......---\u00b7  |        \n                                                   \u00b7   |  |.........|  |\u00b7       \n                                                    \u00b7  | \u00b4...........--..-\u00b7     \n                                                     \u00b7 \u00b7 |................|   \u00b7 \n                                              \u00b7\u00b7      \u00b7  |.................--\u00b7 \u00b7\n\u00b7                                              \u00b7\\  \u00b7--.\u00b7 |....................`|\n\u00b7                                               \u00b7  |...| |.....................|\n \u00b7                                             \u00b7 \u00b7-.....`......................|\n \u00b7                                             |  |............................|\n                                               |--.............................|\n                                               |...........................,-..\u00b7\n                                               |.............Russia.......|  |/ \n                                              \u00b4...........................\u00b7  \u00b7  \n                                              |........................,-\u00b4      \n                                              |.......................|    \u00b7    \n                                              |.......................|    |    \n                                              \u00b7-......................\u00b7    |    \n                                                |......,.............|     |    \n                                            \u00b7  \u00b4....../ |,...........|     |    \n                                               |.....|  \u00b7 |........,..\u00b7    \u00b7    \n                                               \u00b7...,.\u00b7   \u00b7....,...| |.|         \n                                                |.| \u00b7     `.,| |..| |.|         \n                                                \u00b7.\u00b7        | \u00b7 \u00b7.,\u00b7 |.|         \n                                                 |         \u00b7    \u00b7   \u00b7.|         \n                                                 |                   `|         \n                                                 |\u00b7                   |         \n                                                \u00b7.|                   |         \n                                               \u00b7 |\u00b7                   \u00b7         \n                                               \u00b7 |                   \u00b7          \n                                                 \u00b7\u00b7                  \u00b7          \n\n                                                  \u00b7                             \n
\n\nTo overcome the bias you can just render the big land surface for example with:\n\n $ asciimap --surface 1 --method height ru --fill \"'\" \n\n
\n                                                                                  \u00b7-\u00b7                                                                                   \n                                                                              ,---...--------\u00b7                                                                          \n                                                                    ,---------.............,--\u00b7                                                                         \n                                                                ,---......................|                                                                             \n                                                          \u00b7-----...........................--\u00b7 ,---\u00b7     ,\u00b7                                                             \n                                              ,--\u00b7  \u00b7     |,..................................`.....-----..---\u00b7            \u00b7--\u00b7                                         \n                                             /..|  \u00b4| ,---| |.................................................|            |...------\u00b7                                  \n                                           \u00b7-....\u00b7 |.`.....`...................................................--\u00b7 ,-------...........---\u00b7 ,---\u00b7                        \n                                            `....| \u00b7..............................................................`.......................`.....\u00b7            \u00b7\u00b7         \n \u00b7-------\u00b7                           ,---\u00b7   \\...|  |............................................................................................---------\u00b7  |.-------\u00b7 \n  |.......---\u00b7    \u00b7-\u00b7     ,--\u00b7 ,-----.....--\u00b7 |..-\u00b7 |......................................................................................................--.........| \n  \u00b7....,--....\u00b7   `|   ,--....`..............`..|  /..................................................................................................................| \n   |..|   `--\u00b4  ,\u00b7 |---.........................| /...................................................................................................................| \n   |...\u00b7      \u00b7-..`..............................`...................................................................................................................,\u00b7 \n   |...|   ,--......................................................................................................................................................|   \n   \u00b7....---..........................................................................................................................................................\u00b7  \n    |...........................................................................................................................................,...,-...........,----\u00b7 \n   /..........................................................................Russia.........................................................,-\u00b4 |,\u00b4  |.......,-\u00b4       \n \u00b7-........................................................................................................................................,\u00b4    \u00b7  \u00b7-.,-----\u00b4          \n  |...........................................................................................................................,---------../       \u00b7---\u00b4                 \n\u00b7-..........................................................................................................................,\u00b4          `\u00b4       /./                    \n\u00b7.........................................................................................................................,\u00b4                   ,-.|                     \n |......................................................................................................................./                   \u00b7-....-\u00b7                   \n \u00b7--..........................................,........................................................................,\u00b4                    |.....,\u00b7                   \n    |.....................................,--\u00b4 `......,...............................................................|                     \u00b7...../                     \n    \u00b7-...............................,---\u00b4      `----\u00b4 |...............................................................\u00b7                     |.../                      \n      |.............................|                  \u00b7..............................................,-----............---\u00b7                 |../                       \n     \u00b7--..................,-........|                   `.....................,......................|      `...............\u00b7                |./                        \n        `...............,\u00b4  `------.\u00b7                    `----.........,...../ `--...................\u00b7       |.............|                 \u00b7\u00b4                         \n         `---.........,\u00b4           \u00b7                          `-....,-\u00b4 `---|     `-----......,-.,../        \u00b7.............|                                            \n             `......./                                          `--\u00b4        \u00b7           `----\u00b4  \u00b7 `\u00b4          `--..........|                                            \n              |.....|                                                                                            |..,-.....\u00b7                                            \n              |......\u00b7                                                                                           \u00b7-\u00b4  |.../                                             \n             /........\u00b7                                                                                              \u00b4.../                                              \n            /.........-\u00b7                                                                                             |../                                               \n          \u00b7-........./                                                                                            \u00b7 /../                                                \n            `--.....|                                                                                             |`../                                                 \n               `----.\u00b7                                                                                            \u00b7--\u00b4                                                  \n                    `-\\                                                                                                                                                 \n                      \u00b7                                                                                                                                                \n
\n\nor\n\n $ asciimap --surface 1 --method width --height 20 ru --fill \"'\"\n\n
\n                                       \u00b7-\u00b7                                      \n                               ,-------...-\u00b7                                    \n                      \u00b7     ,--.............--------\u00b7                           \n                     \u00b4.\u00b7 \u00b7--.........................\u00b7 ,---------\u00b7              \n \u00b7--\u00b7             ,\u00b7 |.| |............................`...........-------\u00b7 ,---\u00b7\n |..--\u00b7  \u00b7 ,------..`..| |................................................`....|\n \u00b7.|   \u00b7-.`.............`......................................................\u00b7\n  |.---.............................................................,..,....,-\u00b4 \n /...................................Russia.....................,../ `| `--\u00b4    \n\u00b7..........................................................,---\u00b4 `\u00b4   |         \n\u00b7-.......................................................,\u00b4         ,-|         \n  |...............,-----.,..............................|          \u00b4..\u00b7         \n  \u00b7-............./      \u00b7 `..........,...........,--.....\u00b7         \u00b7./          \n    `-....,-----\u00b4          `--...,-.| `---...,../   `.....-\u00b7        \u00b7           \n      `..|                    `-\u00b4  `\u00b7     `-\u00b4 `\u00b4     `.,..|                     \n       |.|                                            \u00b7 |.\u00b7                     \n      \u00b4...\u00b7                                             |/                      \n      \u00b7--\u00b4                                            \u00b7-\u00b7                       \n          \u00b7                                                                     \n\n
\n\nTo find the right surface you have to try around a bit. I'm working on a\nbetter solution.\n\n## Performance\n\nRendering and printing time depends on the size of the resulting map. Rendering\nand printing a country with `40x80 (h x w)` usually takes about `0.1 - 0.3` \nseconds on a 2-core system. Rendering is implemented to use parallel processes \nand reduces computation time on multicore systems. To use the inbuild benchmark\nsystem you need 'yappi' installed. This is not a hard dependency as it is only\nused for development. Print 'yappi' results for example with\n\n $ asciimap de --benchmark\n\n## Statistics\n\nThe configuration and statistics are shown with `--stats` (or `-x`) along the \nresulting map and benchmarking results.\n\n $ asciimap ca -x\n\n
\n                                                     \u00b7----------------\u00b7\n                                             ,-------...........,-\u00b4\n                                         \u00b7---.|      |.....,---\u00b4\n                                           `-..--\u00b7 ,-.....|\n                                   \u00b7\u00b7  \u00b7\u00b7    `\u00b4  |`....,--\u00b7\n                   \u00b7-\u00b7                          \u00b7-----\u00b4\n                 \u00b7\u00b7   \u00b7--\u00b7  ,\u00b7     \u00b7--\u00b7    \u00b7\u00b7\n                          \u00b7--\u00b7       \u00b7  \u00b7-\u00b7 |---------\u00b7\n               ,-----\u00b7                   |.--\u00b4\n              \u00b7..../ |-\u00b7 \u00b7  \u00b7 ,\u00b7   \u00b7 \u00b7-\u00b7 ||   \u00b7--\u00b7 ,--\u00b7\n               `--\u00b4 \u00b7.,--.--.`..\u00b7    \u00b7-\u00b7 ||   \u00b7...`....----\u00b7\n                     \u00b7   |.......\u00b7      /-.\u00b7   `--...,----..----\u00b7\n\u00b7\u00b7   ,--------\u00b7 ,-\u00b7   \u00b7------....-\u00b7  \u00b7--/ |.-\u00b7    |.|     `--....-\u00b7\n|.---..........`...---.|     |..|     ||  |...-\u00b7  |..\u00b7       `....|\n|.......................-----....-----..--......\u00b7 `--\u00b7    \u00b7   |...---\u00b7\n|................................................\u00b7           /...|  `-\u00b7\n|.............................................,-\u00b4 \u00b7\u00b7     \u00b7----....\u00b7\n|...........................................,\u00b4   \u00b7-\u00b7 ,\u00b7       `-...-\u00b7\n|..........................................\u00b7        \u00b7\u00b7          `-\u00b4 \u00b7\n|.....................................Canada           \u00b7 \u00b7---\u00b7\n\u00b7-..,....................................\u00b7               |....--\u00b7\n  `\u00b4 `-..................................|               |......|   ,\u00b7\n       `..................................\u00b7              \u00b7.......\u00b7 /..\u00b7\n        `..................................\u00b7              |.......`....\u00b7\n         `..................................---\u00b7          |............|\n          |.....................................----\u00b7    /..............-\u00b7\n       \u00b7  \u00b7.........................................|   \u00b4.................-\u00b7\n           `.........................................\u00b7  |...................\u00b7\n            \\.........................................\u00b7 |.................,-|\n           \u00b7 |,........................................`...........,--.,-\u00b4  |\n             \u00b7 |,---------------------------.....................,|   \u00b7    /|\n               \u00b7                            `-----............../ \u00b7-\u00b7     \u00b7----\u00b7\n                                                  `-...........|   ||          \u00b7\n                                                    `..........\u00b7  \u00b7-\u00b7 \u00b7 \u00b7\n                                                     |....,---\u00b4      \u00b7-\u00b7\n                                                     |..,\u00b4          \u00b7\n                                                     \u00b7-\u00b4\n\n\n\nMapConfig\n  max_height: 40\n  height: None\n  max_width: 80\n  width: None\n  fill_char: '*'\n  no_char: '.'\n  outside_char: ' '\n  blur: 0.0\n  method: 'dynamic'\n  surface: 'all'\n  is_negative: False\nPrinterConfig\n  fill_char: '*'\n  no_char: '.'\n  outside_char: ' '\n  is_negative: False\n  is_unicode: False\n  padding: (1, 0, 1, 0)\n  max_width: 80\n  max_height: 40\nRenderConfig\n  name: 'Canada'\n  geom:  >\n  centroid: (-98.14238137209722, 61.46907614534891)\n  lowest_lon: -140.99778\n  lowest_lat: 41.675105088867326\n  highest_lon: -52.64809872090421\n  highest_lat: 83.23324\n  lat_diff: 41.55813491113267\n  lon_diff: 88.34968127909579\n  worker_count: 4\n  h_res: 1.1043710159886975\n  w_res: 1.1043710159886975\n  max_height: 38\n  max_width: 80\n
\n\n\n", "description_content_type": "text/markdown; charset=UTF-8; variant=GFM", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/MaelStor/asciimap", "keywords": "earth country print ascii art python spatial geo natural", "license": "GPL-3.0-or-later", "maintainer": "", "maintainer_email": "", "name": "asciimap", "package_url": "https://pypi.org/project/asciimap/", "platform": "", "project_url": "https://pypi.org/project/asciimap/", "project_urls": { "Homepage": "https://github.com/MaelStor/asciimap" }, "release_url": "https://pypi.org/project/asciimap/1.0.0/", "requires_dist": [ "numpy (<2.0.0,>=1.15.1)" ], "requires_python": ">=3.6", "summary": "Print countries in ASCII Art based on Natural Earth shape files.", "version": "1.0.0" }, "last_serial": 5561175, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "90d7b87fcb8070cfcfcfaa4213131f4b", "sha256": "38faf44aeaf4ba8b8e837d78cd604423a0ed03982e3c7d3ff35e8973f4c34096" }, "downloads": -1, "filename": "asciimap-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "90d7b87fcb8070cfcfcfaa4213131f4b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 225369, "upload_time": "2019-07-07T00:00:14", "url": "https://files.pythonhosted.org/packages/23/55/090628d8965818e6e859d19425753ac52bb09502f8166c017664277453d8/asciimap-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c163d0f3555fb0fbf5c5e126fa16597c", "sha256": "659ebf7931361a3a93f7f78e6043d9a0950c5a9289218706f203573ec6477cd5" }, "downloads": -1, "filename": "asciimap-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c163d0f3555fb0fbf5c5e126fa16597c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 231849, "upload_time": "2019-07-07T00:00:16", "url": "https://files.pythonhosted.org/packages/9f/8d/70223cdbfe30cb16ddac909f7ee061437919d7775c38ab7f246bc47a48c1/asciimap-0.1.0.tar.gz" } ], "0.1.0b0": [ { "comment_text": "", "digests": { "md5": "8b5f0bf86aaf80fd5a1449a7b7121e09", "sha256": "f6ea02982b4f636b7ae9caaec6eb6a0ff2239ef02460dc95c793e332e746dd16" }, "downloads": -1, "filename": "asciimap-0.1.0b0-py3-none-any.whl", "has_sig": false, "md5_digest": "8b5f0bf86aaf80fd5a1449a7b7121e09", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 416682, "upload_time": "2019-07-05T23:55:52", "url": "https://files.pythonhosted.org/packages/dc/3e/7c6a0dfc996034bb24370b656416fb4c1fc189cbfbb8a788e05a238808c2/asciimap-0.1.0b0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3a22d2d3bc360081808236e0caad2a3e", "sha256": "b00775b534005375dd2fb50dc83acbe2d3222d179b7c5b679dd23eac9639586d" }, "downloads": -1, "filename": "asciimap-0.1.0b0.tar.gz", "has_sig": false, "md5_digest": "3a22d2d3bc360081808236e0caad2a3e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 418047, "upload_time": "2019-07-05T23:55:56", "url": "https://files.pythonhosted.org/packages/01/92/3f7f51d24950115f52db90c2f4253165c546c1f7d53e294004fd57a28f70/asciimap-0.1.0b0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "36037f750d42c239c07122bc92e0f6db", "sha256": "19ac88b590f42021d36b528974b5aec34de903581a089ae4685167820aad76da" }, "downloads": -1, "filename": "asciimap-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "36037f750d42c239c07122bc92e0f6db", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 225401, "upload_time": "2019-07-07T00:11:55", "url": "https://files.pythonhosted.org/packages/42/a5/4fd159718dd0d812282afccc7411e96afcd66ea2782b477993b70a70925f/asciimap-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "66b77cf21e5a64ba21a164ba6c69052d", "sha256": "0583c7f94856197b15aa7eb7fe8b969bde6dcde65acde47874bf6a8841f83707" }, "downloads": -1, "filename": "asciimap-0.1.1.tar.gz", "has_sig": false, "md5_digest": "66b77cf21e5a64ba21a164ba6c69052d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 231950, "upload_time": "2019-07-07T00:11:57", "url": "https://files.pythonhosted.org/packages/e2/e8/da3955ac5deb7a846fcde79d6e2c94cb8874ea04b80884d080c31aa1c50e/asciimap-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "c1f9459bdfe7f23e63773de942d4afad", "sha256": "bcf84863d741d10d2b4e8ab6883742b4846f66a1105ef13eb6a4267029a539e8" }, "downloads": -1, "filename": "asciimap-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c1f9459bdfe7f23e63773de942d4afad", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 228769, "upload_time": "2019-07-08T21:08:49", "url": "https://files.pythonhosted.org/packages/b0/91/e5c45f923db6b99fca3726befdb6f94ab47142fd97f576cc777e0e255d25/asciimap-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5fa650a29ffc4765780066aad8e3f1d4", "sha256": "4263e61f77b341cc158a4799c4d5d30b325a9b4d656faea7f7bafa75e74a023b" }, "downloads": -1, "filename": "asciimap-0.2.0.tar.gz", "has_sig": false, "md5_digest": "5fa650a29ffc4765780066aad8e3f1d4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 237690, "upload_time": "2019-07-08T21:08:51", "url": "https://files.pythonhosted.org/packages/0c/66/b6aca73383bb6708e821966580411374301e686882cba4f7684324a5fe40/asciimap-0.2.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "4c8fadc93f499bba09767ba60e91d7b1", "sha256": "93c0253f56b68b0c901dde48cd9041049e738c33e6f6e5ca4278b14afdbf0600" }, "downloads": -1, "filename": "asciimap-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4c8fadc93f499bba09767ba60e91d7b1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 230751, "upload_time": "2019-07-20T17:06:36", "url": "https://files.pythonhosted.org/packages/1c/b3/c8d15d2f6a5a1f6dd04c823a91563cbc316a6c250f5a0053d4e3a495ca7f/asciimap-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c7aebf9a0c407dbbf06b85f1516a01a3", "sha256": "6977dc8918b66aed4287d58d4f95857b7d3c6ccd9a9d3cabb0647bdf4d9ee1d0" }, "downloads": -1, "filename": "asciimap-1.0.0.tar.gz", "has_sig": false, "md5_digest": "c7aebf9a0c407dbbf06b85f1516a01a3", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 240453, "upload_time": "2019-07-20T17:06:38", "url": "https://files.pythonhosted.org/packages/f4/9b/607cfb395984066bac2b24d79515561a1ee4c8471b54cbd4f264aad0ce23/asciimap-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4c8fadc93f499bba09767ba60e91d7b1", "sha256": "93c0253f56b68b0c901dde48cd9041049e738c33e6f6e5ca4278b14afdbf0600" }, "downloads": -1, "filename": "asciimap-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4c8fadc93f499bba09767ba60e91d7b1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 230751, "upload_time": "2019-07-20T17:06:36", "url": "https://files.pythonhosted.org/packages/1c/b3/c8d15d2f6a5a1f6dd04c823a91563cbc316a6c250f5a0053d4e3a495ca7f/asciimap-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c7aebf9a0c407dbbf06b85f1516a01a3", "sha256": "6977dc8918b66aed4287d58d4f95857b7d3c6ccd9a9d3cabb0647bdf4d9ee1d0" }, "downloads": -1, "filename": "asciimap-1.0.0.tar.gz", "has_sig": false, "md5_digest": "c7aebf9a0c407dbbf06b85f1516a01a3", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 240453, "upload_time": "2019-07-20T17:06:38", "url": "https://files.pythonhosted.org/packages/f4/9b/607cfb395984066bac2b24d79515561a1ee4c8471b54cbd4f264aad0ce23/asciimap-1.0.0.tar.gz" } ] }