Skip to main content

DoLess is a Python library that provides a set of functions that can be used to perform various tasks in Python. The library is designed to be easy to use and provides a simple functions and class where you can use in your Python scripts to perform basic tasks in just calling functions and methods.

Project description

DoLess.py

DoLess is a Python library that provides a set of functions that can be used to perform various tasks in Python. The library is designed to be easy to use and provides a simple functions and class where you can use in your Python scripts to perform basic tasks in just calling functions and methods. Where your need to write extra two or three lines of code to perform basic tasks where using DoLess Library for python you can perform basic operations just by calling functions and methods..

Features

  • Simple and Intuitive: Just one function call to get started.
  • Lightweight: A minimalistic package with no unnecessary dependencies.
  • Easy to Integrate: Can be used in any Python project with minimal setup.

Installation

You can install DoLess directly from PyPI using pip. Run the following command in your terminal or command prompt:

pip install DoLess

Usage

f-> chareach function

This function bascially prints the whole string with a delay of user given delay in seconds between each character.

e.g

from doLess import chareach
print(chareach("Hello World!", 0.1)) 

prints the whole string with a delay of 0.1 seconds between each character

f-> cmdrun function

This function runs a shell command in the terminal and returns the output of the command.

e.g

from doLess import cmdrun
print(cmdrun("ls"))

prints the list of files and directories in the current directory.

cls-> fileop('filename')

Methods

  • mkfile(filename, text): Creates a new file with the given filename and content.
  • readfile(): Reads the content of the file with the given filename.
  • writefile(filename, text): Writes the given content to the file with the given filename.
  • delfile(): Deletes the file with the given filename. This class provides methods to perform file operations such as creating, reading, writing, and deleting files.

e.g

from doLess import fileop
op = fileop("example.txt") #file name
op.mkfile("example.txt") #for making file and writing file this methods take one argument which is file content or text
op.readfile()
op.writefile("Hello World!")
op.delfile()

cls-> dirop('dirname')

Methods -makdir(): Creates a new directory with the given name. -deldir(): Deletes the directory with the given name.

This class provides methods to perform directory operations such as creating and deleting directories.

e.g

from doLess import dirop
op = dirop("exampledir")
op.makdir() #make directory
op.deldir() #delete directory

cls-> currencyconv('amount')

Methods

  • UsdToInr(): Converts the given amount in USD to INR.
  • InrToUsd(): Converts the given amount in INR to USD.
  • UsdToEuro(): Converts the given amount in USD to EUR.
  • EuroToUsd(): Converts the given amount in EUR to USD.
  • InrToEuro(): Converts the given amount in INR to EUR.
  • EuroToInr(): Converts the given amount in EUR to INR.
  • UsdToPound(): Converts the given amount in USD to Pound.
  • PoundToUsd(): Converts the given amount in Pound to USD.
  • UsdToYen(): Converts the given amount in USD to Yen.
  • YenToUsd(): Converts the given amount in Yen to USD.
  • InrToPound(): Converts the given amount in INR to Pound.
  • PoundToInr(): Converts the given amount in Pound to INR.
  • InrToYen(): Converts the given amount in INR to Yen.
  • YenToInr(): Converts the given amount in Yen to INR.
  • PoundToYen(): Converts the given amount in Pound to Yen.
  • YenToPound(): Converts the given amount in Yen to Pound.
  • EuroToPound(): Converts the given amount in EUR to Pound.
  • PoundToEuro(): Converts the given amount in Pound to EUR.
  • EuroToYen(): Converts the given amount in EUR to Yen.
  • YenToEuro(): Converts the given amount in Yen to EUR.

This class provides methods to perform currency amount calculations based on different currency.

e.g

from doLess import currencyconv
conv = currencyconv(1000)
print(conv.UsdToInr(1000))
print(conv.InrToUsd(1000))
print(conv.UsdToEuro(1000))

There are other more functions to perfrom basic tasks using Doless python library you can explore it.

License

DoLess is released under the MIT License. See the LICENSE file for more details.

Author

DoLess is developed and maintained by Raunak sharma.

Closing

Thank you for using DoLess library :>. Happy coding!

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

doless-0.1.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

DoLess-0.1.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file doless-0.1.1.tar.gz.

File metadata

  • Download URL: doless-0.1.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for doless-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9edfb401cf556dfeac77835aeb82f160e28f956ad6c05b10013c20bc361d5d27
MD5 ec53a9ccfefa5bed083c992639aeebd1
BLAKE2b-256 5dd2070716ca78ea033f67afffc86479e2edc64a7521a19b56f2761ab07cfe5b

See more details on using hashes here.

File details

Details for the file DoLess-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: DoLess-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for DoLess-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e3feb03a6294d0023fad4ed66f0cbda73f9cab9ee21deecae42027229c7e44fa
MD5 e984c0f5193c92ccd9b5011469022933
BLAKE2b-256 6a7e1eb3dd2a08d269b528720c0328e170c6f488f2d2c3399b64e4d254b608e2

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