New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

pointofview

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pointofview - pypi Package Compare versions

Comparing version
1.0.2
to
1.0.3
+1
-1
PKG-INFO
Metadata-Version: 2.1
Name: pointofview
Version: 1.0.2
Version: 1.0.3
Summary: A Python package for determining a piece of text's point of view (first, second, third, or unknown).

@@ -5,0 +5,0 @@ Home-page: https://github.com/prosegrinder/pointofview

@@ -7,3 +7,3 @@ [build-system]

name = "pointofview"
version = "1.0.2"
version = "1.0.3"
description = "A Python package for determining a piece of text's point of view (first, second, third, or unknown)."

@@ -10,0 +10,0 @@ authors = ["David L. Day <david@davidlday.com>"]

@@ -18,3 +18,3 @@ # -*- coding: utf-8 -*-

'name': 'pointofview',
'version': '1.0.2',
'version': '1.0.3',
'description': "A Python package for determining a piece of text's point of view (first, second, third, or unknown).",

@@ -21,0 +21,0 @@ 'long_description': '# pointofview\n\n[![Latest PyPI version](https://img.shields.io/pypi/v/pointofview.svg)](https://pypi.python.org/pypi/pointofview)\n[![GitHub Workflow Status](https://github.com/prosegrinder/python-pointofview/workflows/Python%20CI/badge.svg?branch=main)](https://github.com/prosegrinder/python-pointofview/actions?query=workflow%3A%22Python+CI%22+branch%3Amain)\n\nA Python package for determining a piece of text\'s point of view (first, second,\nthird, or unknown).\n\n## Installation\n\n`pointofview` is available on PyPI. Simply install it with `pip`:\n\n```bash\npip install pointofview\n```\n\nYou can also install it from source:\n\n```bash\n$ git clone https://github.com/prosegrinder/python-pointofview.git\nCloning into \'python-pointofview\'...\n...\n\n$ cd python-pointofview\n$ python setup.py install\n...\n```\n\n## Usage\n\n`pointofview` guesses a text\'s point of view by counting point of view pronouns.\nThe main function `get_text_pov()` will return \'first\', \'second\', \'third\', or\nnull (Python\'s `None` object):\n\n```python\n>>> import pointofview\n>>> text = "I\'m a piece of text written in first person! What are you?"\n>>> pointofview.get_text_pov(text)\n\'first\'\n```\n\nThere are two other helper functions as well.\n\n`get_word_pov()` returns the point of view of a single word:\n\n```python\n>>> pointofview.get_word_pov("I")\n\'first\'\n>>> pointofview.get_word_pov("nope")\nNone\n```\n\n`parse_pov_words()` returns a dict containing all first-, second-, and\nthird-person point-of-view words:\n\n<!-- markdownlint-disable MD013 -->\n\n```python\n>>> text = """\n... When I try to analyze my own cravings, motives, actions and so forth, I surrender to a sort of retrospective imagination which feeds the analytic faculty with boundless alternatives and which causes each visualized route to fork and re-fork without end in the maddeningly complex prospect of my past.\n... """\n>>> pointofview.parse_pov_words(text)\n{\'first\': [\'i\', \'i\'], \'second\': [], \'third\': []}\n```\n\n<!-- markdownlint-enable MD013 -->\n',

@@ -14,3 +14,3 @@ # -*- coding: utf-8 -*-

if sys.version_info >= (3, 9):
from importlib import metadata, resources
from importlib import metadata
else:

@@ -17,0 +17,0 @@ import importlib_metadata as metadata