Starrailcard

Latest version: v2.2.4

Safety actively analyzes 688735 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

2.1.8

- Added new card style: `3`
- Corrected function names.
- Added more settings for styles in the `style.py` file

Support the project::
* Patreon: https://www.patreon.com/deviantapi
* Ko-Fi: https://ko-fi.com/dezzso
* GitHub: https://github.com/DEViantUA/StarRailCard

![a-30](https://github.com/DEViantUA/StarRailCard/assets/112615715/4426c317-7214-461d-9e26-46a04120d92f)


2_1_6
New:

* The main ``Card()`` class received new arguments:
- ``boost_speed`` - Loads character assets onto the device, which speeds up subsequent card generation.
- ``api_data`` - The data was obtained using `ApiMiHoMo().get()`, you can also get it on your side and assemble it into a model: `MiHoMoApi`
- ``user_agent`` - Custom User-Agent.
- ``proxy`` - Useful if your IP is blocked or you do not have access to the address, as for example, my access to `pixiv` is sometimes blocked.

In addition, some functions have received updates in their operation.


Support the project::
* **Patreon**: https://www.patreon.com/deviantapi
* **Ko-Fi**: https://ko-fi.com/dezzso

2_0_4
Fixed minor bugs that blocked the module's operation.

2_0_0

2.0.0

![starRailCardBanner](https://github.com/DEViantUA/StarRailCard/assets/112615715/b4bf432e-21a6-46cc-9840-9436d2d35313)


I finally finished working on version 2.0.0. This version has a lot of changes, both in the code structure and in the way the code works.


Changes:

1. Only 2 templates left.
2. Template 2 received score support
3. Templates are now called Styles
4. The weight of the module has been reduced.
5. Added utils functions
6. Changed the style for the profile.
7. Added the ability to remove the logo from the results.
8. Added the ability to configure the cache.
9. Now the cache is the same for the entire module.
10. Working with the API is built into the module.
11. Added support for pydantic v2.0.0 and higher
12. Added the ability to work and create animated cards.
13. Assets can be downloaded to the device.
14. Added the ability to update user data using Primus.
15. A LICENSE OF USE has been added, PLEASE READ IT: [HERE](https://github.com/DEViantUA/StarRailCard/blob/main/LICENSE)
16. Complete documentation with examples has been written: [HERE](https://github.com/DEViantUA/StarRailCard/wiki/Documentation)
17. Many additional features have been added to make your development easier.

* In the future, it is planned to add an argument that allows you to change any style parameter.
* Add new styles.
* Add models and work with the Score calculator.

![1205_20_03_2024 18_27](https://github.com/DEViantUA/StarRailCard/assets/112615715/4a06bc0e-2575-4fef-b96b-fe973ed88476)



BETA
This version is completely rewritten from 0, only the best templates are left and changed!

LINK: https://ko-fi.com/s/0a23f21b37


![1211_25_02_2024 16_53](https://github.com/DEViantUA/StarRailCard/assets/112615715/3eb25f9d-dc88-430a-94ee-b85d76b048c7)
![1205_25_02_2024 16_55](https://github.com/DEViantUA/StarRailCard/assets/112615715/e28992aa-cf25-4da2-98ea-daf6e593c3a5)

![profile_25_02_2024 16_54](https://github.com/DEViantUA/StarRailCard/assets/112615715/aa72daee-c361-45c9-a30d-59d39140145e)


API_1.0
API updated:

1. The domain has changed.
2. Added additional 2 endpoints.
3. Added the ability to create your own profile page.

* ``get_profile`` - Will create/update data and return a link to the player's profile,
* ``profile`` - Link to user profile as a website. (Can be generated via the get_profile method)
* Example: https://starraillcard.up.railway.app/profile/700649319

♥ Thanks for your help with the code: JokelBaf
♥ Thanks for the idea and the code example provided: LogCreative

![Screenshot_2](https://github.com/DEViantUA/StarRailCard/assets/112615715/7724ee13-c2a0-47ff-85c2-2f7566fe6010)


new_version_1_2_6
New:

1. Template 2 - Removed.
2. Created from 0 and written from 0 new template 2.
3. New function and formula for calculating the score and rating of relics.

Fix:

1. Fixed 1 template.

While writing the code for template 2, I realized that starrailcard is outdated in code and needs to be completely rewritten, at least to the level of [EnkaCard 3.0.0](https://github.com/DEViantUA/EnkaCard), but this will happen after the release of Honkai Star Railill 2.0

![Jingliu_16_01_2024 18_14](https://github.com/DEViantUA/StarRailCard/assets/112615715/f84318b2-189f-4039-a8af-9c519ff28f10)


Api
**Many people have asked if my module is available in other languages ​​and my answer has always been the same: No, my designs are only for Python but now you can use the API to get these cards in other programming languages!**

Today I wrote an API that generates cards and returns you the same result as the module.

Read more: [Documentation](https://github.com/DEViantUA/StarRailCard/wiki/StarRailCard-API)

new_version_1_2_2_UA
NEW:

* Added support for the Ukrainian language.
* Fonts have been changed. (Ukrainian letters added)
* Reduced module size.

This update also affected the addon: [HSRCard](https://github.com/DEViantUA/HSRCard)

If you do not have Ukrainian language, then update the module: [HonkaiRail](https://pypi.org/project/honkairail/)

> The update was made only on the PyPi version

If you want to help with translation into Ukrainian, then this repository contains all the translations and instructions on how to translate new data: [StarRailCardUA](https://github.com/DEViantUA/StarRailCardUA)

![1112-7006493190](https://github.com/DEViantUA/StarRailCard/assets/112615715/d55cf6f6-985f-4990-9312-df5e95350936)
![1112-700649319](https://github.com/DEViantUA/StarRailCard/assets/112615715/7f710ef8-add8-4cb5-a331-bac6890b2f1d)




new_version_1_2_0
Big patch with updates:

1. Downloaded latest version from PyPi: https://pypi.org/project/starrailcard/
2. Several bugs have been fixed.
3. Added the ability to set a custom background to the third template.
4. New class arguments: ``MiHoMoCard``.
* ``font`` - Path or name of the font file. (Sets a custom font for cards.) [Issue](https://github.com/DEViantUA/StarRailCard/issues/1#issuecomment-1774285279)
* ``characterBackground`` - dict, analogue of characterImgs (Sets a custom background for the card.)
* ``backgroundBlur`` - True/False (Blur custom background or not.)
![prew](https://github.com/DEViantUA/StarRailCard/assets/112615715/4b849442-d559-4bb7-9fc0-5d12b7ce674b)
6. Added: ``try/finally`` for image download function.

> In the next mini patch on PyPi, I will add a description to the arguments

new_version_1_1_0
The new version adds:

1. New command template.
2. White color correction. (Now an image with a white background will not interfere with the text)
3. The new template can be used to get multiple 1 to 4 characters and no background.

new_version_0_1_5
New:

- Added new feature: ``get_profile``
Parrams:
``uid`` - Game UID,
``card`` - Generate a character card, if ``False`` which will return just the profile information.
``banner`` - Link/Path to Image
- Function: ``add_author`` got a new variable:
``profile`` - If you want to credit the author on the profile card.
- Added logging for downloaded files, which speeds up the re-generation of cards.
- Added support and ability to download images via link from ``pixiv``


Also, 3 template was sent.

<img src="https://raw.githubusercontent.com/DEViantUA/StarRailCard/main/a-22.png.png" alt="Баннер"/>


new_version_0_1_0
NEW:

Improved 3 template:
- Talents maxed out.
- Artifact level is now measured with a box next to it.

Added the ability to get the top from the site: https://seeleland.com/ using the ``seeleland = True`` parameter

new_version_8
Update:


- Added the latest version on GitHub
- Added font for CN support 1
- Added CN language 1
- Simplified work with the talent tree for 2 templates.
- Fixed talent tree in template 2.

Next pattern.
<img src="https://raw.githubusercontent.com/DEViantUA/StarRailCard/main/a-20.png" alt="next_banner"/>


new

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.