semvec/pypi-packages huggingface dataset:
offset 0.0.2
To encode & decode by shift text(Symmetric encryption).
License: MIT
Requires Python: >=3.6

# Offset
## - What is this?
To encode & decode by shift text(Symmetric encryption).

## - How to install
```bash
pip install Offset
```

## - How to use

### Module
1. Import
```python
from offset import Offset
```
2. Convert text through a public method
```python
Offset.convert(text, number)
```

### CLI

- Basic mode:
```bash
offset -n 10 -s 'Hello'
```

- File mode:
>The new file will be stored at '~/offset_export/filename_%Y%m%d_%H%M%S.ext'

```bash
offset -n 10 -f '/filepath/and/filename.ext'
```

- Interactive mode
> you can give it a default without enter a number every single time.

```bash
offset -i [-n int]
```

### GUI(IN PROGRESS)
![Screenshot](https://github.com/Ron-Chang/offset/blob/master/img/gui.png?raw=true)

If you like my work, please consider buying me a coffee or [PayPal](https://paypal.me/RonDevStudio?locale.x=zh_TW)
Thanks for your support! Cheers! 🎉
<a href="https://www.buymeacoffee.com/ronchang" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" align="right"></a>
pyleapcard 0.1.9
Python Leap Card API (Unofficial). Access your card balance and journey history for Ireland's public transport smart card.
License: MIT
Keywords: leap card public transport smart card api travel ireland

# pyleapcard
[![PyPI](https://img.shields.io/pypi/v/pyleapcard.svg)](https://pypi.python.org/pypi/pyleapcard/) [![codecov](https://codecov.io/gh/skhg/pyleapcard/branch/master/graph/badge.svg)](https://codecov.io/gh/skhg/pyleapcard)

A Python API for accessing your current card balance and stats for Ireland's public transport [Leap Card](https://www.leapcard.ie/). This is an unoffical API and the author/contributors are in no way connected to Leap Card, Transport for Ireland, or any other agency. The API provides methods to:
* Get your credit balance and card status information
* Get a list of your recent trips & topups

For an example of this in use, see my [Leap Card BitBar plugin](https://github.com/skhg/BitBar-Plugins/tree/master/LeapCard)

## Installation
`pip install pyleapcard`

## Usage
It's very easy to use. Try the following to get your card status and current balance:
```python
from pyleapcard import *
from pprint import pprint

session = LeapSession()
session.try_login("<username>","<password>")

overview = session.get_card_overview()
pprint(vars(overview))
```
returns:
```python
{'auto_topup': u'Not Enabled',
 'balance': 25.02,
 'card_label': u"<Card Label>",
 'card_num': u'<Card Number>',
 'card_status': u'Unblocked',
 'card_type': u'Adult',
 'credit_status': u'Unblocked',
 'expiry_date': u'09/12/2023 12:00:00 AM',
 'issue_date': u'02/04/2012 12:00:00 AM'}
 ```
 
 Or to get your recent trips/topups add the following:
 ```python
 events = session.get_events()
for item in events:
	pprint(vars(item))
  ```
  returns:
  ```python
  {'date': u'06/09/2017',
 'event_type': u'Travel Credit Deduction',
 'price': -3.52,
 'provider': u'Bus Eireann',
 'time': u'11:45 AM',
 'was_topup': False}
{'date': u'06/09/2017',
 'event_type': u'Travel Credit Top-Up',
 'price': 50.0,
 'provider': u'Leap Top-Up App',
 'time': u'10:00 AM',
 'was_topup': True}
{'date': u'02/09/2017',
 'event_type': u'Travel Credit Deduction',
 'price': -3.52,
 'provider': u'Bus Eireann',
 'time': u'12:16 PM',
 'was_topup': False}
 ```
 
 ## Tests
 `python ./tests/tests.py`
 
 ## Contributing
 Fork this repo, make some changes and create a new pull request!
importit 0.1.3
Import python code from anywhere.
License: MIT
Requires Python: >=3.6

<div align="center">

![banner](https://raw.githubusercontent.com/divykj/importit/master/banner.svg "importit banner")

# importit

![importit downloads badge](https://img.shields.io/pypi/dm/importit?color=84dbff&style=flat-square "importit downloads")
![importit version badge](https://img.shields.io/pypi/v/importit?label=version&color=ffd05b&style=flat-square "importit version")
![importit python versions badge](https://img.shields.io/pypi/pyversions/importit?color=e6e9ee&style=flat-square "importit python versions")

</div>

> Import python code from anywhere.

**`importit`** is a python code import helper. Using it, you can dynamically import python code from different sources (like gists, python files on the internet, local python files). You don't need to copy python code snippets from project to project.

Some of use cases can be:

- Reusing python code snippets in multiple places and projects
- Dynamically reloading python code on live environments
- You tell me, what will you use it for?

---

### From where do you want to import?

<details>
<summary><b>Github Gist</b></summary>

<br />

Find the gist id from the gist url: `https://gist.github.com/<username>/<gist id>`

Using [this gist](https://gist.github.com/divykj/51dcf067f4e445c3f837d26efd2c138e) as an exmaple:

```python
from importit import import_gist

imported_gist = import_gist("imported_gist", "51dcf067f4e445c3f837d26efd2c138e")

imported_gist.first_file.some_function()
imported_gist.second_file.some_other_function()
```

**Note:** The gist will be imported in the form of module, with each python file in the gist as a submodule.

</details>

<details>
<summary><b>Remote File</b></summary>

<br />

Use any valid python file url (for example, [`http://bit.ly/aPythonFile`](http://bit.ly/aPythonFile))

```python
from importit import import_remote_file

imported_file = import_remote_file("imported_file", "http://bit.ly/aPythonFile")

imported_file.some_function()
```

</details>

<details>
<summary><b>Local File</b></summary>

```python
from importit import import_remote_file

imported_file = import_remote_file("imported_file", "/home/divykj/aPythonFile.py")

imported_file.some_function()
```

</details>

<details>
<summary><b>Code Snippet</b></summary>

```python
from importit import import_code

python_code = """
def some_function():
    # do some crazy things
    pass
"""

imported_code = import_code("imported_code", python_code)
imported_code.some_function()
```

</details>

Planning to add **Github**, **Gitlab**, **Bitbucket** (and other git repository services) and maybe **PyPI** support soon.

---

### How to install?

```shell
❯ pip install importit
```

---

### Want to contribute?

To get more information on contributing, go to the [CONTRIBUTING.md](https://github.com/divykj/importit/blob/master/CONTRIBUTING.md).

Also read the [CODE_OF_CONDUCT.md](https://github.com/divykj/importit/blob/master/CODE_OF_CONDUCT.md).