<p align="center">
<img src="https://i.imgur.com/yQ9gI82.png" />
</p>
<h1 align="center">AwesomeNations</h1>


**AwesomeNations** is a simple wrapper for [NationStates](https://www.nationstates.net), a browser-based nation simulation game created at 13 November 2002 by Max Barry- Oh wait, nobody cares about real life lore. Anyways, this library allows you to collect nation and region data, retrieve census statistics, and much gore- more.
You can install AwesomeNations using pip:
``` bash
pip install awesomeNations
```
Easy, quick and **awesome**.
## Getting shards: ദ്ദി(˵ •̀ ᴗ - ˵ ) ✧
- [Nation shards](https://www.nationstates.net/pages/api.html#nationapi-publicshards)
- [Region shards](https://www.nationstates.net/pages/api.html#regionapi-shards)
- [World shards](https://www.nationstates.net/pages/api.html#worldapi-shards)
- [World Assembly shards](https://www.nationstates.net/pages/api.html#waapi-shards)
## Nations 🚩
Well, well, well... So you want some nation shards, huh? Take a look on the bashes below then! Let's start with a simple example...
```python
from awesomeNations import AwesomeNations
from pprint import pprint as pp # Normal printing, but more pretty!
awn = AwesomeNations("My Awesome App/0.0.1 (by:Testlandia; usedBy:Maxtopia)") # Put useful info here.
nation = awn.Nation
shards_list = ("name", "fullname", "motto", "leader", "religion")
nation_shards_data = nation("testlandia").get_public_shards(shards_list)
pp(nation_shards_data)
```
Returns this beauty:
``` bash
{'nation': {'fullname': 'The Hive Mind of Testlandia',
'id': 'testlandia',
'leader': 'Violet',
'motto': 'New forum when?',
'name': 'Testlandia',
'religion': 'Neo-Violetism'}}
```
Now lets try to **get a census**...
``` python
nation_censuses_data = nation("testlandia").get_public_shards("census", scale=46)
print(nation_censuses_data)
```
Retrives:
``` bash
{'nation': {'id': 'testlandia', 'census': {'scale': {'id': 46, 'score': 7493.24, 'rank': 27809, 'rrank': 10}}}}
```
Cool, but don't feel Enough... Let's checkout **all censuses**!!!
``` python
nation_censuses_data = nation("testlandia").get_public_shards("census", scale="all")
pp(nation_censuses_data)
```
Retrives:
``` bash
{'nation': {'census': {'scale': [{'id': 0,
'rank': 96913,
'rrank': 11,
'score': 66},
{'id': 1,
'rank': 78719,
'rrank': 21,
'score': 92.85},
{'id': 2,
'rank': 89184,
'rrank': 11,
'score': 71.43},
{'id': 3,
'rank': 396,
'rrank': 1,
'score': 46656000000},
{'id': 4,
'rank': 311489,
'rrank': 39,
'score': 1.4},
{'id': 5,
'rank': 333262,
'rrank': 41,
'score': 20.28},
{'id': 6,
'rank': 52002,
'rrank': 10,
'score': 46.76},
{'id': 7,
'rank': 1355,
'rrank': 2,
'score': 14879.42},
{'id': 8,
'rank': 247267,
'rrank': 35,
'score': 42},
{'id': 9,
'rank': 162457,
'rrank': 22,
'score': 128.5},
{'id': 10,
'rank': 342378,
'rrank': 44,
'score': -24.82},
{'id': 11,
'rank': 342074,
'rrank': 43,
'score': -13.15},
{'id': 12,
'rank': 343280,
'rrank': 44,
'score': -14.87},
{'id': 13,
'rank': 162162,
'rrank': 25,
'score': 3237.08},
{'id': 14,
'rank': 313062,
'rrank': 40,
'score': -10.67},
{'id': 15,
'rank': 335589,
'rrank': 43,
'score': -12.9},
{...}]},
'id': 'testlandia'}}
```
**Getting nation summary**: (Text from the requested nation [page](https://www.nationstates.net/nation=testlandia)!)
``` python
nation_summary = nation("testlandia").get_summary()
pp(nation_summary)
```
Should return something like:
``` python
{'description': {'economy': 'The powerhouse Testlandian economy, worth a '
'remarkable 3,202 trillion Kro-bro-ünzes a year, '
'is driven almost entirely by government activity. '
'The industrial sector is solely comprised of the '
'Information Technology industry. Average income '
'is 68,642 Kro-bro-ünzes, and distributed '
'extremely evenly, with little difference between '
'the richest and poorest citizens.',
'government': 'It is difficult to tell where the omnipresent '
'government stops and the rest of society '
'begins, but it juggles the competing demands '
'of Healthcare, Environment, and Education. It '
'meets to discuss matters of state in the '
'capital city of Tést City. The average income '
'tax rate is 89.1%, and even higher for the '
'wealthy.',
'legislation': 'Dubiously qualified Skandilundian barristers '
"keep referring to laws as 'government "
"guidelines', Violet's office has a newly "
'installed Max-Man arcade game programmed by a '
'5th-grader, Testlandians struggle to cut tofu '
'steak with a spoon, and girls who wear '
'lipstick are berated for pandering to male '
'gazes. Crime is totally unknown, thanks to a '
'very well-funded police force and progressive '
'social policies in education and welfare. '
"Testlandia's national animal is the ★★★ "
'nautilus ★★★, which frolics freely in the '
"nation's sparkling oceans, and its national "
'religion is Neo-Violetism.',
'society': 'The Hive Mind of Testlandia is a gargantuan, safe '
'nation, ruled by Violet with a fair hand, and '
'renowned for its museums and concert halls, '
'hatred of cheese, and stringent health and safety '
'legislation. The compassionate, democratic '
'population of 46.656 billion Testlandians are '
'fiercely patriotic and enjoy great social '
'equality; they tend to view other, more '
'capitalist countries as somewhat immoral and '
'corrupt.'}}
```
## Regions 🌍
Same shard logic apply to regions:
``` python
region = awn.Region
region_shards = region("The EAST pacific").get_shards()
pp(region_shards)
```
Should return something like this:
``` bash
{'region': {'banner': 808732,
'bannerurl': '/images/rbanners/uploads/the_east_pacific__808732.jpg',
'delegate': 'american-cascadia',
'delegateauth': 'XWABCEP',
'delegatevotes': 449,
'embassies': {'embassy': ['Japan',
'The Glorious Nations of Iwaku',
'Yggdrasil',
'Eientei Gensokyo',
'Thaecia',
'Equiterra',
'The Free Nations Region',
'the Pacific',
'The Region That Has No Big Banks',
'Europeia',
'the South Pacific',
'10000 Islands',
'the Rejected Realms',
'The Union of Democratic States',
'The North Pacific',
'Balder',
'Lazarus',
'Conch Kingdom',
'Refugia',
'Lone Wolves United',
'The Black Hawks',
'Carcassonne',
'Caer Sidi',
'The Land of Kings and Emperors',
'The Kingdom of Great Britain',
'The Social Liberal Union',
'Democratic Socialist Assembly',
'Warzone Asia',
'The Hole To Hide In',
'Palmetto',
'Anime Nations Against Liberals',
'Hyrule',
'Pasridi Confederacy',
'Worlds to Build',
'Confederated East Pacific',
{'text': 'Adairidae',
'type': 'invited'}]},
'factbook': '&#128227; '
'[b][color=#359C46]W[/color][color=#339A48]e[/color][color=#32984B]l[/color][color=#31964D]c[/color][color=#309450]o[/color][color=#2E9353]m[/color][color=#2D9155]e[/color] '
'[color=#2B8D5A]t[/color][color=#298C5D]o[/color] '
'[color=#278862]T[/color][color=#268665]h[/color][color=#248467]e[/color] '
'[color=#29885F]E[/color][color=#2B895B]a[/color][color=#2D8B57]s[/color][color=#2F8C53]t[/color] '
'[color=#338F4A]P[/color][color=#359146]a[/color][color=#379242]c[/color][color=#39943E]i[/color][color=#3B953A]f[/color][color=#3D9736]i[/color][color=#409931]c[/color][/b] '
'- '
'[b][i][color=#27ceff]T[/color][color=#27c4ff]h[/color][color=#27beff]e[/color] '
'[color=#27b4ff]p[/color][color=#27aaff]l[/color][color=#279aff]a[/color][color=#278cff]c[/color][color=#277fff]e[/color] '
'[color=#276fff]o[/color][color=#2765ff]f[/color] '
'[color=#275bff]y[/color][color=#2765ff]o[/color][color=#276fff]u[/color][color=#277fff]r[/color] '
'[color=#278cff]d[/color][color=#279aff]r[/color][color=#27aaff]e[/color][color=#27b4ff]a[/color][color=#27beff]m[/color][color=#27c4ff]s[/color][color=#27ceff]![/color] '
'[/i][/b]\n'
'\n'
'[hr]\n'
'\n'
'&#128262; '
'[b][url=https://discord.gg/qhDtwr9][color=#008026]Discord[/color][/url] '
'&#128262; '
'[url=https://forum.theeastpacific.com/][color=#96b819]Forums[/color][/url] '
'&#128262; '
'[url=https://www.nationstates.net/page=dispatch/id=2599456][color=#008026]Regional '
'Newspaper[/color][/url] &#128262; '
'[url=https://www.nationstates.net/page=dispatch/id=1861129][color=#96b819]Valsora '
'- Official RMB Map[/color][/url] &#128262; '
'[url=https://www.nationstates.net/page=dispatch/id=2598695][color=#008026]RMB '
'Rules[/color][/url] &#128262; '
'[url=https://www.nationstates.net/page=dispatch/id=2598687][color=#96b819]Foreign '
'Affairs Handbook[/color][/url][/b] &#128262; '
'[url=https://www.nationstates.net/page=dispatch/id=2508943][b][color=#008026]Regional '
'Military[/color][/b][/url] &#128262;\n'
'\n'
'[hr]\n'
'\n'
'&#127891; [b][color=#1C6F34]New Arrivals '
'Guide[/color][/b]\n'
'\n'
'Check out the '
'[url=https://www.nationstates.net/page=dispatch/id=2598700][u][b]STEP[/b][/u][/url] '
'program - The East Pacific’s official welcome '
'guide!\n'
'\n'
'[hr]\n'
'\n'
'\n'
'&#9888;&#65039; [color=#1C6F34][b]Endorsement '
'Cap: 300[/b][/color]\n'
'\n'
'Please join the '
'[b][url=https://www.nationstates.net/page=un]World '
'Assembly[/url][/b] and endorse Delegate '
'[b][nation]American-Cascadia[/nation][/b] and the '
'[url=https://www.nationstates.net/page=dispatch/id=2598693][b]Viziers![/b][/url]\n'
'\n'
'[hr]\n'
'\n'
'&#128202; [color=#1C6F34][b]World Assembly '
'Recommendations:[/b][/color]\n'
'\n'
'[list]\n'
'\n'
'[*]General Assembly: [color=green][b]FOR[/b][/color]\n'
'[*]Security Council: [color=green][b]FOR[/b][/color]\n'
'\n'
'[/list]\n'
'\n'
'[hr]\n'
'\n'
'&#129351; [color=#1C6F34][b]RMB Quote of the '
'Day:[/b][/color]\n'
'[quote=royabad;58334693]surely this’ll bring '
'down the price of eggs[/quote]\n'
'\n'
'\n'
'[hr]\n'
'\n'
'&#128240; [color=#1C6F34][b]News '
'Bulletin:[/b][/color][list]\n'
'\n'
'[*][b][u][url=https://www.nationstates.net/page=dispatch/id=2599456]Our '
'December 2024 EPNS edition has '
'launched![/url][/u][/b] Click and upvote!\n'
'[*]Dispatches have been recovered and placed back in '
'the WFE.',
'flag': 'https://www.nationstates.net/images/flags/uploads/rflags/the_east_pacific__744779.png',
'founder': 0,
'frontier': 0,
'governor': 0,
'lastmajorupdate': 1738651173,
'lastminorupdate': 1738691727,
'lastupdate': 1738691727,
'name': 'The East Pacific',
'nations': {...},
'numnations': 5541,
'officers': {...},
'power': 'Extremely High'}}
```
## Summary
**AwesomeNations**
- get_daily_data_dumps() -> None: Dowloads daily data dumps;
- get_world_shards() -> dict: Gets the World API shards;
- get_world_assembly_shards() -> dict: Gets the World Assembly API shards.
**Nation**
- exists() -> bool: Checks if nation exists;
- get_public_shards() -> dict: Gets Nation API public shards;
- get_summary() -> dict: Gets the nation summary (from it's respective NationStates page).
**Region**
- exists() -> bool: Checks if region exists;
- get_shards() -> dict: Gets region shards.
---
---
``` bash
█████╗ ██╗ ██╗███████╗███████╗ ██████╗ ███╗ ███╗███████╗ ≽^•⩊•^≼ - "meow, meow"
██╔══██╗██║ ██║██╔════╝██╔════╝██╔═══██╗████╗ ████║██╔════╝
███████║██║ █╗ ██║█████╗ ███████╗██║ ██║██╔████╔██║█████╗
██╔══██║██║███╗██║██╔══╝ ╚════██║██║ ██║██║╚██╔╝██║██╔══╝
██║ ██║╚███╔███╔╝███████╗███████║╚██████╔╝██║ ╚═╝ ██║███████╗
╚═╝ ╚═╝ ╚══╝╚══╝ ╚══════╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝
██████╗██╗ ██╗ █████╗ ███╗ ██╗ ██████╗ ███████╗██╗ ██████╗ ██████╗
██╔════╝██║ ██║██╔══██╗████╗ ██║██╔════╝ ██╔════╝██║ ██╔═══██╗██╔════╝
██║ ███████║███████║██╔██╗ ██║██║ ███╗█████╗ ██║ ██║ ██║██║ ███╗
██║ ██╔══██║██╔══██║██║╚██╗██║██║ ██║██╔══╝ ██║ ██║ ██║██║ ██║
╚██████╗██║ ██║██║ ██║██║ ╚████║╚██████╔╝███████╗███████╗╚██████╔╝╚██████╔╝
╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝╚══════╝ ╚═════╝ ╚═════╝
```
# </> 1.0.0 </>:
- Internal structure adapted from major **web scrapping** to **API wrapping**, this change was made to improve **efficiency** and better align with NationStates script rules;
- Documentation improved.
New methods:
- **AwesomeNations**: get_daily_data_dumps()-> None;
- **AwesomeNations**: get_world_shards()-> dict;
- **AwesomeNations**: get_world_assembly_shards() -> dict;
- **Nation**: get_summary() -> dict;
- **Nation**: get_public_shards() -> dict;
- **Region**: get_shards() -> dict.
Modified methods:
- **AwesomeNations**: "nationStates_birthday()" was renamed to "today_is_nationstates_birthday()";
- **AwesomeNations**: "nationStates_age()" was renamed to "get_nationstates_age()".
Removed methods:
- **Nation**: get_overview();
- **Nation**: get_activity();
- **Nation**: get_census();
- **Region**: get_overview();
- **Region**: get_world_census();
- **Region**: get_activity();
- **Region**: get_embassies().
# </> 0.1.0 </>:
- Region support;
- License addition;
- Scraping efficiency improvement;
- Changelog addition;
- Exceptions improvements;
- Code examples;
- Github repository creation;
- Less cringe.
# </> 0.0.4 </>:
- First dummy release, hello... World...?
Raw data
{
"_id": null,
"home_page": null,
"name": "awesomeNations",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "NationStates, API wrapper, NationStates wrapper",
"author": "Orly Neto",
"author_email": "orly2carvalhoneto@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/0a/85/e4b2e9ef0fddf589334e7e61a543ecb5eb61f9c4ad73a45a444015b3a6de/awesomenations-1.0.0.tar.gz",
"platform": null,
"description": "<p align=\"center\">\r\n <img src=\"https://i.imgur.com/yQ9gI82.png\" />\r\n</p>\r\n\r\n<h1 align=\"center\">AwesomeNations</h1>\r\n\r\n\r\n\r\n\r\n**AwesomeNations** is a simple wrapper for [NationStates](https://www.nationstates.net), a browser-based nation simulation game created at 13 November 2002 by Max Barry- Oh wait, nobody cares about real life lore. Anyways, this library allows you to collect nation and region data, retrieve census statistics, and much gore- more.\r\n\r\nYou can install AwesomeNations using pip:\r\n\r\n``` bash\r\npip install awesomeNations\r\n```\r\n\r\nEasy, quick and **awesome**.\r\n\r\n## Getting shards: \u0d26\u0d4d\u0d26\u0d3f(\u02f5 \u2022\u0300 \u1d17 - \u02f5 ) \u2727\r\n\r\n- [Nation shards](https://www.nationstates.net/pages/api.html#nationapi-publicshards)\r\n- [Region shards](https://www.nationstates.net/pages/api.html#regionapi-shards)\r\n- [World shards](https://www.nationstates.net/pages/api.html#worldapi-shards)\r\n- [World Assembly shards](https://www.nationstates.net/pages/api.html#waapi-shards)\r\n\r\n## Nations \ud83d\udea9\r\n\r\nWell, well, well... So you want some nation shards, huh? Take a look on the bashes below then! Let's start with a simple example...\r\n\r\n```python\r\nfrom awesomeNations import AwesomeNations\r\nfrom pprint import pprint as pp # Normal printing, but more pretty!\r\n\r\nawn = AwesomeNations(\"My Awesome App/0.0.1 (by:Testlandia; usedBy:Maxtopia)\") # Put useful info here.\r\nnation = awn.Nation\r\n\r\nshards_list = (\"name\", \"fullname\", \"motto\", \"leader\", \"religion\")\r\nnation_shards_data = nation(\"testlandia\").get_public_shards(shards_list)\r\npp(nation_shards_data)\r\n```\r\n\r\nReturns this beauty:\r\n\r\n``` bash\r\n{'nation': {'fullname': 'The Hive Mind of Testlandia',\r\n 'id': 'testlandia',\r\n 'leader': 'Violet',\r\n 'motto': 'New forum when?', \r\n 'name': 'Testlandia', \r\n 'religion': 'Neo-Violetism'}}\r\n```\r\n\r\nNow lets try to **get a census**...\r\n\r\n``` python\r\nnation_censuses_data = nation(\"testlandia\").get_public_shards(\"census\", scale=46)\r\nprint(nation_censuses_data)\r\n```\r\n\r\nRetrives:\r\n\r\n``` bash\r\n{'nation': {'id': 'testlandia', 'census': {'scale': {'id': 46, 'score': 7493.24, 'rank': 27809, 'rrank': 10}}}}\r\n```\r\n\r\nCool, but don't feel Enough... Let's checkout **all censuses**!!!\r\n\r\n``` python\r\nnation_censuses_data = nation(\"testlandia\").get_public_shards(\"census\", scale=\"all\")\r\npp(nation_censuses_data)\r\n```\r\n\r\nRetrives:\r\n\r\n``` bash\r\n{'nation': {'census': {'scale': [{'id': 0,\r\n 'rank': 96913, \r\n 'rrank': 11, \r\n 'score': 66}, \r\n {'id': 1, \r\n 'rank': 78719, \r\n 'rrank': 21, \r\n 'score': 92.85},\r\n {'id': 2, \r\n 'rank': 89184, \r\n 'rrank': 11, \r\n 'score': 71.43},\r\n {'id': 3, \r\n 'rank': 396,\r\n 'rrank': 1,\r\n 'score': 46656000000},\r\n {'id': 4,\r\n 'rank': 311489,\r\n 'rrank': 39,\r\n 'score': 1.4},\r\n {'id': 5,\r\n 'rank': 333262,\r\n 'rrank': 41,\r\n 'score': 20.28},\r\n {'id': 6,\r\n 'rank': 52002,\r\n 'rrank': 10,\r\n 'score': 46.76},\r\n {'id': 7,\r\n 'rank': 1355,\r\n 'rrank': 2,\r\n 'score': 14879.42},\r\n {'id': 8,\r\n 'rank': 247267,\r\n 'rrank': 35,\r\n 'score': 42},\r\n {'id': 9,\r\n 'rank': 162457,\r\n 'rrank': 22,\r\n 'score': 128.5},\r\n {'id': 10,\r\n 'rank': 342378,\r\n 'rrank': 44,\r\n 'score': -24.82},\r\n {'id': 11,\r\n 'rank': 342074,\r\n 'rrank': 43,\r\n 'score': -13.15},\r\n {'id': 12,\r\n 'rank': 343280,\r\n 'rrank': 44,\r\n 'score': -14.87},\r\n {'id': 13,\r\n 'rank': 162162,\r\n 'rrank': 25,\r\n 'score': 3237.08},\r\n {'id': 14,\r\n 'rank': 313062,\r\n 'rrank': 40,\r\n 'score': -10.67},\r\n {'id': 15,\r\n 'rank': 335589,\r\n 'rrank': 43,\r\n 'score': -12.9},\r\n {...}]},\r\n 'id': 'testlandia'}}\r\n```\r\n\r\n**Getting nation summary**: (Text from the requested nation [page](https://www.nationstates.net/nation=testlandia)!)\r\n\r\n``` python\r\nnation_summary = nation(\"testlandia\").get_summary()\r\npp(nation_summary)\r\n```\r\n\r\nShould return something like:\r\n\r\n``` python\r\n{'description': {'economy': 'The powerhouse Testlandian economy, worth a '\r\n 'remarkable 3,202 trillion Kro-bro-\u00fcnzes a year, ' \r\n 'is driven almost entirely by government activity. '\r\n 'The industrial sector is solely comprised of the ' \r\n 'Information Technology industry. Average income ' \r\n 'is 68,642 Kro-bro-\u00fcnzes, and distributed '\r\n 'extremely evenly, with little difference between ' \r\n 'the richest and poorest citizens.',\r\n 'government': 'It is difficult to tell where the omnipresent ' \r\n 'government stops and the rest of society ' \r\n 'begins, but it juggles the competing demands ' \r\n 'of Healthcare, Environment, and Education. It ' \r\n 'meets to discuss matters of state in the ' \r\n 'capital city of T\u00e9st City. The average income '\r\n 'tax rate is 89.1%, and even higher for the '\r\n 'wealthy.',\r\n 'legislation': 'Dubiously qualified Skandilundian barristers '\r\n \"keep referring to laws as 'government \"\r\n \"guidelines', Violet's office has a newly \"\r\n 'installed Max-Man arcade game programmed by a '\r\n '5th-grader, Testlandians struggle to cut tofu '\r\n 'steak with a spoon, and girls who wear '\r\n 'lipstick are berated for pandering to male '\r\n 'gazes. Crime is totally unknown, thanks to a '\r\n 'very well-funded police force and progressive '\r\n 'social policies in education and welfare. '\r\n \"Testlandia's national animal is the \u2605\u2605\u2605 \"\r\n 'nautilus \u2605\u2605\u2605, which frolics freely in the '\r\n \"nation's sparkling oceans, and its national \"\r\n 'religion is Neo-Violetism.',\r\n 'society': 'The Hive Mind of Testlandia is a gargantuan, safe '\r\n 'nation, ruled by Violet with a fair hand, and '\r\n 'renowned for its museums and concert halls, '\r\n 'hatred of cheese, and stringent health and safety '\r\n 'legislation. The compassionate, democratic '\r\n 'population of 46.656 billion Testlandians are '\r\n 'fiercely patriotic and enjoy great social '\r\n 'equality; they tend to view other, more '\r\n 'capitalist countries as somewhat immoral and '\r\n 'corrupt.'}}\r\n```\r\n\r\n## Regions \ud83c\udf0d\r\n\r\nSame shard logic apply to regions:\r\n\r\n``` python\r\nregion = awn.Region\r\nregion_shards = region(\"The EAST pacific\").get_shards()\r\npp(region_shards)\r\n```\r\n\r\nShould return something like this:\r\n\r\n``` bash\r\n{'region': {'banner': 808732,\r\n 'bannerurl': '/images/rbanners/uploads/the_east_pacific__808732.jpg',\r\n 'delegate': 'american-cascadia',\r\n 'delegateauth': 'XWABCEP',\r\n 'delegatevotes': 449,\r\n 'embassies': {'embassy': ['Japan',\r\n 'The Glorious Nations of Iwaku',\r\n 'Yggdrasil',\r\n 'Eientei Gensokyo',\r\n 'Thaecia',\r\n 'Equiterra',\r\n 'The Free Nations Region',\r\n 'the Pacific',\r\n 'The Region That Has No Big Banks',\r\n 'Europeia',\r\n 'the South Pacific',\r\n '10000 Islands',\r\n 'the Rejected Realms',\r\n 'The Union of Democratic States',\r\n 'The North Pacific',\r\n 'Balder',\r\n 'Lazarus',\r\n 'Conch Kingdom',\r\n 'Refugia',\r\n 'Lone Wolves United',\r\n 'The Black Hawks',\r\n 'Carcassonne',\r\n 'Caer Sidi',\r\n 'The Land of Kings and Emperors',\r\n 'The Kingdom of Great Britain',\r\n 'The Social Liberal Union',\r\n 'Democratic Socialist Assembly',\r\n 'Warzone Asia',\r\n 'The Hole To Hide In',\r\n 'Palmetto',\r\n 'Anime Nations Against Liberals',\r\n 'Hyrule',\r\n 'Pasridi Confederacy',\r\n 'Worlds to Build',\r\n 'Confederated East Pacific',\r\n {'text': 'Adairidae',\r\n 'type': 'invited'}]},\r\n 'factbook': '&#128227; '\r\n '[b][color=#359C46]W[/color][color=#339A48]e[/color][color=#32984B]l[/color][color=#31964D]c[/color][color=#309450]o[/color][color=#2E9353]m[/color][color=#2D9155]e[/color] '\r\n '[color=#2B8D5A]t[/color][color=#298C5D]o[/color] '\r\n '[color=#278862]T[/color][color=#268665]h[/color][color=#248467]e[/color] '\r\n '[color=#29885F]E[/color][color=#2B895B]a[/color][color=#2D8B57]s[/color][color=#2F8C53]t[/color] '\r\n '[color=#338F4A]P[/color][color=#359146]a[/color][color=#379242]c[/color][color=#39943E]i[/color][color=#3B953A]f[/color][color=#3D9736]i[/color][color=#409931]c[/color][/b] '\r\n '- '\r\n '[b][i][color=#27ceff]T[/color][color=#27c4ff]h[/color][color=#27beff]e[/color] '\r\n '[color=#27b4ff]p[/color][color=#27aaff]l[/color][color=#279aff]a[/color][color=#278cff]c[/color][color=#277fff]e[/color] '\r\n '[color=#276fff]o[/color][color=#2765ff]f[/color] '\r\n '[color=#275bff]y[/color][color=#2765ff]o[/color][color=#276fff]u[/color][color=#277fff]r[/color] '\r\n '[color=#278cff]d[/color][color=#279aff]r[/color][color=#27aaff]e[/color][color=#27b4ff]a[/color][color=#27beff]m[/color][color=#27c4ff]s[/color][color=#27ceff]![/color] '\r\n '[/i][/b]\\n'\r\n '\\n'\r\n '[hr]\\n'\r\n '\\n'\r\n '&#128262; '\r\n '[b][url=https://discord.gg/qhDtwr9][color=#008026]Discord[/color][/url] '\r\n '&#128262; '\r\n '[url=https://forum.theeastpacific.com/][color=#96b819]Forums[/color][/url] '\r\n '&#128262; '\r\n '[url=https://www.nationstates.net/page=dispatch/id=2599456][color=#008026]Regional ' \r\n 'Newspaper[/color][/url] &#128262; '\r\n '[url=https://www.nationstates.net/page=dispatch/id=1861129][color=#96b819]Valsora ' \r\n '- Official RMB Map[/color][/url] &#128262; '\r\n '[url=https://www.nationstates.net/page=dispatch/id=2598695][color=#008026]RMB '\r\n 'Rules[/color][/url] &#128262; '\r\n '[url=https://www.nationstates.net/page=dispatch/id=2598687][color=#96b819]Foreign ' \r\n 'Affairs Handbook[/color][/url][/b] &#128262; '\r\n '[url=https://www.nationstates.net/page=dispatch/id=2508943][b][color=#008026]Regional ' \r\n 'Military[/color][/b][/url] &#128262;\\n'\r\n '\\n'\r\n '[hr]\\n'\r\n '\\n'\r\n '&#127891; [b][color=#1C6F34]New Arrivals '\r\n 'Guide[/color][/b]\\n'\r\n '\\n'\r\n 'Check out the '\r\n '[url=https://www.nationstates.net/page=dispatch/id=2598700][u][b]STEP[/b][/u][/url] ' \r\n 'program - The East Pacific’s official welcome '\r\n 'guide!\\n'\r\n '\\n'\r\n '[hr]\\n'\r\n '\\n'\r\n '\\n'\r\n '&#9888;&#65039; [color=#1C6F34][b]Endorsement '\r\n 'Cap: 300[/b][/color]\\n'\r\n '\\n'\r\n 'Please join the '\r\n '[b][url=https://www.nationstates.net/page=un]World '\r\n 'Assembly[/url][/b] and endorse Delegate '\r\n '[b][nation]American-Cascadia[/nation][/b] and the '\r\n '[url=https://www.nationstates.net/page=dispatch/id=2598693][b]Viziers![/b][/url]\\n' \r\n '\\n'\r\n '[hr]\\n'\r\n '\\n'\r\n '&#128202; [color=#1C6F34][b]World Assembly '\r\n 'Recommendations:[/b][/color]\\n'\r\n '\\n'\r\n '[list]\\n'\r\n '\\n'\r\n '[*]General Assembly: [color=green][b]FOR[/b][/color]\\n'\r\n '[*]Security Council: [color=green][b]FOR[/b][/color]\\n'\r\n '\\n'\r\n '[/list]\\n'\r\n '\\n'\r\n '[hr]\\n'\r\n '\\n'\r\n '&#129351; [color=#1C6F34][b]RMB Quote of the '\r\n 'Day:[/b][/color]\\n'\r\n '[quote=royabad;58334693]surely this’ll bring '\r\n 'down the price of eggs[/quote]\\n'\r\n '\\n'\r\n '\\n'\r\n '[hr]\\n'\r\n '\\n'\r\n '&#128240; [color=#1C6F34][b]News '\r\n 'Bulletin:[/b][/color][list]\\n'\r\n '\\n'\r\n '[*][b][u][url=https://www.nationstates.net/page=dispatch/id=2599456]Our '\r\n 'December 2024 EPNS edition has '\r\n 'launched![/url][/u][/b] Click and upvote!\\n'\r\n '[*]Dispatches have been recovered and placed back in '\r\n 'the WFE.',\r\n 'flag': 'https://www.nationstates.net/images/flags/uploads/rflags/the_east_pacific__744779.png', \r\n 'founder': 0,\r\n 'frontier': 0,\r\n 'governor': 0,\r\n 'lastmajorupdate': 1738651173,\r\n 'lastminorupdate': 1738691727,\r\n 'lastupdate': 1738691727,\r\n 'name': 'The East Pacific',\r\n 'nations': {...},\r\n 'numnations': 5541,\r\n 'officers': {...},\r\n 'power': 'Extremely High'}}\r\n```\r\n\r\n## Summary\r\n\r\n**AwesomeNations**\r\n- get_daily_data_dumps() -> None: Dowloads daily data dumps;\r\n- get_world_shards() -> dict: Gets the World API shards;\r\n- get_world_assembly_shards() -> dict: Gets the World Assembly API shards.\r\n\r\n**Nation**\r\n- exists() -> bool: Checks if nation exists;\r\n- get_public_shards() -> dict: Gets Nation API public shards;\r\n- get_summary() -> dict: Gets the nation summary (from it's respective NationStates page).\r\n\r\n**Region**\r\n- exists() -> bool: Checks if region exists;\r\n- get_shards() -> dict: Gets region shards.\r\n\r\n---\r\n---\r\n\r\n``` bash\r\n \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u227d^\u2022\u2a4a\u2022^\u227c - \"meow, meow\"\r\n\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255d\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255d\u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255d\r\n\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2588\u2588\u2554\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2557 \r\n\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551\u2588\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u255d \u255a\u2550\u2550\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551\u255a\u2588\u2588\u2554\u255d\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u255d \r\n\u2588\u2588\u2551 \u2588\u2588\u2551\u255a\u2588\u2588\u2588\u2554\u2588\u2588\u2588\u2554\u255d\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u255a\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255d\u2588\u2588\u2551 \u255a\u2550\u255d \u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\r\n\u255a\u2550\u255d \u255a\u2550\u255d \u255a\u2550\u2550\u255d\u255a\u2550\u2550\u255d \u255a\u2550\u2550\u2550\u2550\u2550\u2550\u255d\u255a\u2550\u2550\u2550\u2550\u2550\u2550\u255d \u255a\u2550\u2550\u2550\u2550\u2550\u255d \u255a\u2550\u255d \u255a\u2550\u255d\u255a\u2550\u2550\u2550\u2550\u2550\u2550\u255d\r\n\r\n \u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557 \u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \r\n\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255d\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255d \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255d\u2588\u2588\u2551 \u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255d \r\n\u2588\u2588\u2551 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2588\u2557\r\n\u2588\u2588\u2551 \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551\u255a\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u255d \u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\r\n\u255a\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u255a\u2588\u2588\u2588\u2588\u2551\u255a\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255d\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u255a\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255d\u255a\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255d\r\n \u255a\u2550\u2550\u2550\u2550\u2550\u255d\u255a\u2550\u255d \u255a\u2550\u255d\u255a\u2550\u255d \u255a\u2550\u255d\u255a\u2550\u255d \u255a\u2550\u2550\u2550\u255d \u255a\u2550\u2550\u2550\u2550\u2550\u255d \u255a\u2550\u2550\u2550\u2550\u2550\u2550\u255d\u255a\u2550\u2550\u2550\u2550\u2550\u2550\u255d \u255a\u2550\u2550\u2550\u2550\u2550\u255d \u255a\u2550\u2550\u2550\u2550\u2550\u255d \r\n```\r\n\r\n# </> 1.0.0 </>:\r\n\r\n- Internal structure adapted from major **web scrapping** to **API wrapping**, this change was made to improve **efficiency** and better align with NationStates script rules;\r\n- Documentation improved.\r\n\r\nNew methods:\r\n- **AwesomeNations**: get_daily_data_dumps()-> None;\r\n- **AwesomeNations**: get_world_shards()-> dict;\r\n- **AwesomeNations**: get_world_assembly_shards() -> dict;\r\n- **Nation**: get_summary() -> dict;\r\n- **Nation**: get_public_shards() -> dict;\r\n- **Region**: get_shards() -> dict.\r\n\r\nModified methods:\r\n- **AwesomeNations**: \"nationStates_birthday()\" was renamed to \"today_is_nationstates_birthday()\";\r\n- **AwesomeNations**: \"nationStates_age()\" was renamed to \"get_nationstates_age()\".\r\n\r\nRemoved methods:\r\n- **Nation**: get_overview();\r\n- **Nation**: get_activity();\r\n- **Nation**: get_census();\r\n- **Region**: get_overview();\r\n- **Region**: get_world_census();\r\n- **Region**: get_activity();\r\n- **Region**: get_embassies().\r\n\r\n# </> 0.1.0 </>:\r\n\r\n- Region support;\r\n- License addition;\r\n- Scraping efficiency improvement;\r\n- Changelog addition;\r\n- Exceptions improvements;\r\n- Code examples;\r\n- Github repository creation;\r\n- Less cringe.\r\n\r\n# </> 0.0.4 </>:\r\n\r\n- First dummy release, hello... World...?\r\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "A simple and cozy wrapper for NationStates",
"version": "1.0.0",
"project_urls": null,
"split_keywords": [
"nationstates",
" api wrapper",
" nationstates wrapper"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "42d956b41788d0d9b3cdbeaa9f974ad454462671d5f724c0ba22e6bf3bd6a58a",
"md5": "6a8616fbde0efe31fababfb26803a3e7",
"sha256": "6cb1105ffad336c29a9b6455dd86d2d776ea395b47cb502a724e32b7c5f30185"
},
"downloads": -1,
"filename": "awesomeNations-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6a8616fbde0efe31fababfb26803a3e7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 26443,
"upload_time": "2025-02-08T02:21:23",
"upload_time_iso_8601": "2025-02-08T02:21:23.797197Z",
"url": "https://files.pythonhosted.org/packages/42/d9/56b41788d0d9b3cdbeaa9f974ad454462671d5f724c0ba22e6bf3bd6a58a/awesomeNations-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "0a85e4b2e9ef0fddf589334e7e61a543ecb5eb61f9c4ad73a45a444015b3a6de",
"md5": "8aff2959674f931cd29845764b8fad74",
"sha256": "fec2d1553a2c36804e2724d731b9e296aabfc20755a7a50856ec6fe067674e7b"
},
"downloads": -1,
"filename": "awesomenations-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "8aff2959674f931cd29845764b8fad74",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 19940,
"upload_time": "2025-02-08T02:21:25",
"upload_time_iso_8601": "2025-02-08T02:21:25.724791Z",
"url": "https://files.pythonhosted.org/packages/0a/85/e4b2e9ef0fddf589334e7e61a543ecb5eb61f9c4ad73a45a444015b3a6de/awesomenations-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-08 02:21:25",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "awesomenations"
}