Skip to main content

File or URL formatting

Project description

fmtsrc

This program outputs the input string as a text file by specifying the format such as normalization of Unicode strings, specification of newline characters, etc.

argument

os

Auto select hint of unicode format (Mac:NFD, Windows or Linux: NFC), line separator (Windows:CRLF, Mac or Linux: LF). Choose 'Mac' or 'Windows' or 'Linux' (default: environment OS) example: fmtsrc file='xxx.txt' os='Windows'

encoding

The text encoding of the input source. example: fmtsrc file='xxx.txt' encoding='utf-8'

unicodeform

The Unicode combining character. MacOSX use NFD, other NFC. example: fmtsrc url='https://xxx.com/yyy.txt' unicodeform='NFC'

linesep

Line separator. This option can replace all line separators as any character. MacOS9 or later: LF Other MacOS: CR Linux: LF Windows CR+LF example: fmtsrc url='https://xxx.com/yyy.txt' linesep='\r\n' fmtsrc url='https://xxx.com/yyy.txt' linesep='
'

URL

URL input source. Error occurs when file source is used. example: fmtsrc url='https://xxx.com/yyy.txt'

file

File input source. Error occurs when url source is used. example: fmtsrc file='xxx.txt'

export

Export data as a file. example: fmtsrc file='xxx.txt' export='zzz.txt' fmtsrc url='https://xxx.com/yyy.txt' export='zzz.txt'

e_encodings

The text encoding of the output file. If not specified, input encoding is applied. example: fmtsrc url='https://xxx.com/yyy.txt' export='zzz.txt' e_encodings='utf-8'

Project details


Download files

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

Source Distribution

fmtsrc-0.0.5.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distributions

fmtsrc-0.0.5-py3.9.egg (4.6 kB view hashes)

Uploaded Source

fmtsrc-0.0.5-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

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