Skip to main content

Simple way to convert numeric HTML entities to far more readable named entities.

Project description

Installation

pip install namedentities

Failing that, fall back to the older approach:

easy_install namedentities

(You may need to begin these with “sudo “ to authorize installation.)

Usage

Python 2:

from namedentities import named_entities

u = u'both em\u2014and–dashes…'
print named_entities(u)

Python 3:

from namedentities import named_entities

u = 'both em\u2014and–dashes…'
print(named_entities(u))

Credits

This is basically a packaging of Ian Beck’s work (described in http://beckism.com/2009/03/named_entities_python/)

Thank you, Ian!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

namedentities-1.0.zip (3.6 kB view details)

Uploaded Source

namedentities-1.0.tar.gz (1.5 kB view details)

Uploaded Source

File details

Details for the file namedentities-1.0.zip.

File metadata

  • Download URL: namedentities-1.0.zip
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for namedentities-1.0.zip
Algorithm Hash digest
SHA256 db93ba5f55ca737a42e660e2376f50ba93dd88cc4a4a3bfd828d171964903d6b
MD5 94621692ed8ea1281e952fe2b0ea3935
BLAKE2b-256 c3ed35334180cea80cdf089b494812154ef8f37c5e1b4cba216cef79a173b00b

See more details on using hashes here.

File details

Details for the file namedentities-1.0.tar.gz.

File metadata

  • Download URL: namedentities-1.0.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for namedentities-1.0.tar.gz
Algorithm Hash digest
SHA256 c8fab3f66f2fe385d093bb61c6236a044cc237bc56ab8b1c2d42bd59aefd1818
MD5 ff3e6ee0dd9b626fce01b334a0a65ea6
BLAKE2b-256 1934363d22007204a350c0970938fc2b892bdfd72195d7d8affd4a0b6455937b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page